[ros-users] gazebo compile problem with avformat lib
John Hsu
johnhsu at willowgarage.com
Wed Mar 24 21:47:29 UTC 2010
Hi Dejan,
Upon closer look, it looks like you have a local install of libavcodec
/usr/local/include/libavcodec/avcodec.h
that does not play nice with system install of libavformat? I'd try the
system install version of libavcodec and see if that helps.
John
On Wed, Mar 24, 2010 at 2:41 PM, John Hsu <johnhsu at willowgarage.com> wrote:
> Hi Dejan,
> which revision of libavcodec and libavformat do you have installed?
> John
>
>
> On Wed, Mar 24, 2010 at 2:35 PM, Eric Perko <wisesage5001 at gmail.com>wrote:
>
>> What repositories and updates settings do you have enabled? I recently
>> had a similar looking error on a system that was running 9.10 with all
>> the update settings enabled in Synaptic (including karmic-backports,
>> which I suspect to be the problem). If you have changed the update
>> settings, can you try is on a 9.04 system that doesn't grab updates
>> from backports?
>>
>> - Eric Perko
>> wisesage5001 at gmail.com
>> eric.perko at case.edu
>> mobilerobots.case.edu
>>
>> On Wed, Mar 24, 2010 at 5:23 PM, Dejan Pangercic
>> <dejan.pangercic at cs.tum.edu> wrote:
>> > Hi there,
>> > I am running Ubuntu 9.04 and ROS latest. After the today's update I
>> > can't compile gazebo anymore.
>> > Error:
>> > In file included from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.hh:36,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.cc:33:
>> > /usr/include/libavformat/avformat.h:164:1: warning: "PKT_FLAG_KEY"
>> redefined
>> > In file included from /usr/include/libavformat/avformat.h:45,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.hh:36,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.cc:33:
>> > /usr/local/include/libavcodec/avcodec.h:957:1: warning: this is the
>> > location of the previous definition
>> > In file included from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.hh:36,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.cc:33:
>> > /usr/include/libavformat/avformat.h:117: error: redefinition of
>> > ‘struct AVPacket’
>> > /usr/local/include/libavcodec/avcodec.h:908: error: previous
>> > definition of ‘struct AVPacket’
>> > /usr/include/libavformat/avformat.h:163: error: invalid type in
>> > declaration before ‘;’ token
>> > /usr/include/libavformat/avformat.h:163: error: conflicting
>> > declaration ‘typedef int AVPacket’
>> > /usr/local/include/libavcodec/avcodec.h:954: error: ‘AVPacket’ has a
>> > previous declaration as ‘typedef struct AVPacket AVPacket’
>> > /usr/include/libavformat/avformat.h: In function ‘void
>> > av_free_packet(AVPacket*)’:
>> > /usr/include/libavformat/avformat.h:211: error: ‘void
>> > av_free_packet(AVPacket*)’ was declared ‘extern’ and later ‘static’
>> > /usr/local/include/libavcodec/avcodec.h:2788: error: previous
>> > declaration of ‘void av_free_packet(AVPacket*)’
>> > [ 56%] Built target gazebo_gui
>> > [ 57%] Building CXX object
>> > server/audio_video/CMakeFiles/gazebo_av-shared.dir/OpenAL.o
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.cc:
>> > In member function ‘int AudioDecoder::Decode(uint8_t**, unsigned
>> > int*)’:
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.cc:104:
>> > warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*,
>> > const uint8_t*, int)’ is deprecated (declared at
>> > /usr/local/include/libavcodec/avcodec.h:3196)
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.cc:105:
>> > warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*,
>> > const uint8_t*, int)’ is deprecated (declared at
>> > /usr/local/include/libavcodec/avcodec.h:3196)
>> > make[3]: ***
>> [server/audio_video/CMakeFiles/gazebo_av-shared.dir/AudioDecoder.o]
>> > Error 1
>> > make[3]: *** Waiting for unfinished jobs....
>> > make[3]: Entering directory
>> >
>> `/home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/build'
>> > In file included from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.hh:36,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/OpenAL.cc:42:
>> > /usr/include/libavformat/avformat.h:164:1: warning: "PKT_FLAG_KEY"
>> redefined
>> > In file included from /usr/include/libavformat/avformat.h:45,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.hh:36,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/OpenAL.cc:42:
>> > /usr/local/include/libavcodec/avcodec.h:957:1: warning: this is the
>> > location of the previous definition
>> > make[3]: Leaving directory
>> >
>> `/home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/build'
>> > [ 99%] Built target gazebo_server
>> > In file included from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/AudioDecoder.hh:36,
>> > from
>> >
>> /home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/server/audio_video/OpenAL.cc:42:
>> > /usr/include/libavformat/avformat.h:117: error: redefinition of
>> > ‘struct AVPacket’
>> > /usr/local/include/libavcodec/avcodec.h:908: error: previous
>> > definition of ‘struct AVPacket’
>> > /usr/include/libavformat/avformat.h:163: error: invalid type in
>> > declaration before ‘;’ token
>> > /usr/include/libavformat/avformat.h:163: error: conflicting
>> > declaration ‘typedef int AVPacket’
>> > /usr/local/include/libavcodec/avcodec.h:954: error: ‘AVPacket’ has a
>> > previous declaration as ‘typedef struct AVPacket AVPacket’
>> > /usr/include/libavformat/avformat.h: In function ‘void
>> > av_free_packet(AVPacket*)’:
>> > /usr/include/libavformat/avformat.h:211: error: ‘void
>> > av_free_packet(AVPacket*)’ was declared ‘extern’ and later ‘static’
>> > /usr/local/include/libavcodec/avcodec.h:2788: error: previous
>> > declaration of ‘void av_free_packet(AVPacket*)’
>> > make[3]: ***
>> [server/audio_video/CMakeFiles/gazebo_av-shared.dir/OpenAL.o]
>> > Error 1
>> > make[3]: Leaving directory
>> >
>> `/home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/build'
>> > make[2]: *** [server/audio_video/CMakeFiles/gazebo_av-shared.dir/all]
>> Error 2
>> > make[2]: Leaving directory
>> >
>> `/home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/build'
>> > make[1]: *** [all] Error 2
>> > make[1]: Leaving directory
>> >
>> `/home/pangerci/local/src/ros/pkgs/simulator_gazebo/gazebo/gazebo-svn/build'
>> > make: *** [installed] Error 2
>> >
>> > Anyone with some hint?
>> > D.
>> >
>> > --
>> > MSc. Dejan Pangercic
>> > PhD Student/Researcher
>> > Computer Science IX
>> > Technische Universität München
>> > Telephone: +49 (89) 289-17780
>> > E-Mail: dejan.pangercic at in.tum.de
>> > WWW: http://ias.cs.tum.edu/people/pangercic
>> > _______________________________________________
>> > ros-users mailing list
>> > ros-users at code.ros.org
>> > https://code.ros.org/mailman/listinfo/ros-users
>> >
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100324/ef8f6815/attachment-0003.html>
More information about the ros-users
mailing list