Hi, I'm having problems building OSG 3.2.0 on Linux Mint. 

Error:

Code:
[ 96%] Building CXX object 
src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o
/home/curvv/Downloads/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:
 In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*, int*, 
const uint8_t*, int)’:
/home/curvv/Downloads/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:33:72:
 error: ‘avcodec_decode_audio3’ was not declared in this scope
/home/curvv/Downloads/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:
 In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream*)’:
/home/curvv/Downloads/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:103:36:
 error: ‘CODEC_ID_NONE’ was not declared in this scope
/home/curvv/Downloads/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:
 In function ‘int osgFFmpeg::decode_audio(AVCodecContext*, int16_t*, int*, 
const uint8_t*, int)’:
/home/curvv/Downloads/OpenSceneGraph-3.2.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:38:1:
 warning: control reaches end of non-void function [-Wreturn-type]
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



I have libav, which is prob why this happens. But I'm building OSG for use with 
FlightGear which doesn't need OSG's FFMPEG support. So how can I build without 
FFMpeg? I tried with 
-DCMAKE_WITH_FFMPEG=OFF
-DWITH_FFMPEG=OFF

but no joy.

Thanks[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59285#59285





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to