Hello,
I'm trying to do a new installation of OSG on a Fedora-12 system, and
I'm having trouble with compiling -- it complains about "the use of
enum 'SampleFormat'" in a handful of places -- see below for the full
error output.
So, I suspect that this may be a version issue with FFmpeg, but I cannot
find any documentation of what version of FFmpeg I should be using.
Further, since it appears that the FFmpeg feature is a plugin, I would
suspect
that it is optional, but the cmake settings reveal no ON/OFF flag for
ffmpeg.
I have tested this with both OSG versions 3.0.1 and 3.1.1, and get the
same result for both.
Can anyone inform me of either 1) how to just disable ffmpeg, or 2) what
version of ffmpeg I should try to install?
Here is what my currently installed ffmpeg reports:
% ffmpeg
FFmpeg version SVN-r25715-snapshot, Copyright (c) 2000-2010 the
FFmpeg developers
built on Nov 10 2010 17:21:23 with gcc 4.4.2 20091027 (Red Hat
4.4.2-7)
configuration:
libavutil 50.33. 0 / 50.33. 0
libavcore 0.12. 1 / 0.12. 1
libavcodec 52.94. 4 / 52.94. 4
libavformat 52.84. 0 / 52.84. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.59. 0 / 1.59. 0
libswscale 0.12. 0 / 0.12. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile
options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
And here is the end result of the attempted compile:
% make
[...]
[ 97%] Built target osgdb_txp
[ 97%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles
/osgdb_ffmpeg.dir/FFmpegClocks.o
In file included from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:13,
from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:11,
from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:3:
/usr/local/include/libavcodec/avcodec.h:1234: error: use of enum
‘SampleFormat’ without previous declaration
In file included from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:13,
from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:11,
from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:3:
/usr/local/include/libavcodec/avcodec.h:2799: error: use of enum
‘SampleFormat’ without previous declaration
In file included from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:13,
from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:11,
from
/home/akk36/Downloads/OpenSceneGraph-3.1.1/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:3:
/usr/local/include/libavcodec/avcodec.h:3063: error: use of enum
‘SampleFormat’ without previous declaration
/usr/local/include/libavcodec/avcodec.h:3064: error: use of enum
‘SampleFormat’ without previous declaration
make[2]: ***
[src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.o] Error 1
make[1]: ***
[src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2
make: *** [all] Error 2
Thanks in advance for any help!
Bill
--
Bill Sherman
Sr. Technology Advisor
Advanced Visualization Lab
Pervasive Technology Inst
Indiana University
[email protected]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org