[ros-users] gazebo compile problem with avformat lib
Dejan Pangercic
dejan.pangercic at cs.tum.edu
Wed Mar 24 21:23:20 UTC 2010
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
More information about the ros-users
mailing list