Hi Robert,
On 25/6/09 12:50 PM, Robert Osfield wrote:
Sorry to hear it's broken - mostly likely broken by the previous
change, as the last one I checked in just re-enable the build of the
plugins as it was accidentally disabled by the previous check-in.
Could you try removing your CMakeCache.txt and do another ./configure
so see if this find the placement of ffmpeg.
Just removed CMakeCache and re-ran 'ccmake ..':
- it found all the ffmpeg locations:
FFMPEG_LIBAVCODEC_INCLUDE_DIRS /opt/local/include/libavcodec
FFMPEG_LIBAVDEVICE_INCLUDE_DIR /opt/local/include/libavdevice
FFMPEG_LIBAVFORMAT_INCLUDE_DIR /opt/local/include/libavformat
FFMPEG_LIBAVUTIL_INCLUDE_DIRS /opt/local/include/libavutil
FFMPEG_LIBSWSCALE_INCLUDE_DIRS /opt/local/include/libswscale
FFMPEG_ROOT
But the build fails. From the error message:
[ 82%] Building CXX object
src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.cpp.o
In file included from
/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11,
from
/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10,
from
/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:2:
/opt/local/include/libavcodec/avcodec.h:30:30: error: libavutil/avutil.h: No such file or
directory
Notice that the error is actually from *within* /opt/local/include/libavcodec/avcodec.h,
so the header files are found.
However, line 30 in this file is:
#include "libavutil/avutil.h"
which means that in order to find this we'd need to include /opt/local/include in the
search path. This apparently isn't done (anymore?).
I guess this only works on Linux because /usr/local/include is in the search
path.
Where abouts in your system do you have ffmpeg installed? Could you
post the layout of where your install has placed all the ffmpeg header
directories?
Please see the FFMPEG_*_INCLUDE_DIRS values above.
Cheers,
/ulrich
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org