[osg-users] Compilation error ffmpeg

27 views
Skip to first unread message

Carlos Sanches

unread,
Oct 31, 2012, 10:47:43 AM10/31/12
to OpenSceneGraph Users
Hi all !!!
I m trying to compile OSG 3.0.0  in ubuntu 64bits
I m trying using ffmpeg with many versions but the error persist :

In file included from /usr/local/include/libavutil/
avutil.h:327:0,
                 from /usr/local/include/libavutil/samplefmt.h:22,
                 from /usr/local/include/libavcodec/avcodec.h:30,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:12,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1:
/usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/local/include/libavutil/common.h:170:47: error: ‘UINT64_C’ was not declared in this scope
In file included from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/FrameStamp:22:0,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/BufferObject:20,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/Image:17,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/include/osg/AudioStream:17,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:12,
                 from /dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1:
/usr/include/c++/4.7/ctime: At global scope:
/usr/include/c++/4.7/ctime:62:11: error: ‘::clock_t’ has not been declared
/usr/include/c++/4.7/ctime:63:11: error: ‘::time_t’ has not been declared
/usr/include/c++/4.7/ctime:66:11: error: ‘::clock’ has not been declared
/usr/include/c++/4.7/ctime:67:11: error: ‘::difftime’ has not been declared
/usr/include/c++/4.7/ctime:68:11: error: ‘::mktime’ has not been declared
/usr/include/c++/4.7/ctime:69:11: error: ‘::time’ has not been declared
/usr/include/c++/4.7/ctime:70:11: error: ‘::asctime’ has not been declared
/usr/include/c++/4.7/ctime:71:11: error: ‘::ctime’ has not been declared
/usr/include/c++/4.7/ctime:72:11: error: ‘::gmtime’ has not been declared
/usr/include/c++/4.7/ctime:73:11: error: ‘::localtime’ has not been declared
/usr/include/c++/4.7/ctime:74:11: error: ‘::strftime’ has not been declared
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*, int*, const uint8_t*, int)’:
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:12: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4188) [-Wdeprecated-declarations]
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:28:72: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4188) [-Wdeprecated-declarations]
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream*)’:
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4102) [-Wdeprecated-declarations]
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:92:44: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4102) [-Wdeprecated-declarations]
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘size_t osgFFmpeg::FFmpegDecoderAudio::decodeFrame(void*, size_t)’:
/dados/arq/OSG/OpenSceneGraph-3.0.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:341:48: error: ‘INT64_C’ was not declared in this scope
make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1
make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2
make: *** [all] Error 2


Any idea of what can I do ?

THank you!


--
 

Reply all
Reply to author
Forward
0 new messages