Hi one more time,
2013/1/30 Koduri Lakshmi <[email protected]> > Hi, > > I downloaded latest ffmpeg submission, replaced all files in > /src/plugins/ffmpeg folder and compiled. I am getting the following error. > > > Code: > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11:32: > fatal error: libavcodec/avcodec.h: No such file or directory > > > It seems the system is not able locate "FFMPEG" include directories. Do I > need to change anything in "FindFfmpeg.cmake" files. As I am not having > much knowledge in make files I am not able to located it. > > You need to investigate it further, and put a bit of effort on this. > I am using ffmpeg0.8.12 and nkd8. I red in OSG fourms that ffmpeg0.8.4 is > compatable with OSG. But it is not available in ffmpeg site. We have only > ffmpeg0.0.12. > > I am using ffmpeg 0.8.12 and ndk8 too. First of all see if avcodec.h is where you are saying to cmake that it is. You wrote -DFFMPEG_LIBAVCODEC_INCLUDE_DIR=/home/ttpl/Android/OSGSupport/ffmpeg/libavcodec/include I don't have any include directory inside ffmpeg/libavcodec. The header files are in the same folder that the source files, so pay attention wiht the cmake configuration. Cheers. The cmake command which I gave is > > > Code: > cmake .. -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF > -DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF > -DOSG_GL_MATRICES_AVAILABLE=ON -DOSG_GL_VERTEX_FUNCS_AVAILABLE=ON > -DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=ON > -DOSG_GL_FIXED_FUNCTION_AVAILABLE=ON -DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF > -DOSG_GL1_AVAILABLE=OFF > > -DFFMPEG_LIBAVCODEC_INCLUDE_DIR=/home/ttpl/Android/OSGSupport/ffmpeg/libavcodec/include > -DFFMPEG_LIBAVCODEC_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavcodec.a > > -DFFMPEG_LIBAVDEVICE_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg/libavdevice/include > > -DFFMPEG_LIBAVDEVICE_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavdevice.a > > -DFFMPEG_LIBAVFORMAT_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg/libavformat/include > -DFFMPEG_LIBAVFORMAT_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavformat.a > -DFFMPEG_LIBAVUTIL_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg/libavutil/include > -DFFMPEG_LIBAVUTIL_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavutil.a > -DFFMPEG_LIBSWSCALE_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg/libswscale/include > -DFFMPEG_LIBSWSCALE_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libswscale.a > -DFFMPEG_ROOT=/home/ttpl/Android/OSGSupport/ffmpeg -DOSG_GL2_AVAILABLE=OFF > > -DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=ON -DOSG_GLES2_AVAILABLE=OFF > -DJ=4 > -DCMAKE_INSTALL_PREFIX=/home/ttpl/Android/OpenSceneGraph-3.0.1_GL1/osginstall > > > > Can you please help in this? > > Errors list > > > Code: > Compile++ thumb : osgdb_ffmpeg <= FFmpegClocks.cpp > Compile++ thumb : osgdb_ffmpeg <= FFmpegDecoderAudio.cpp > Compile++ thumb : osgdb_ffmpeg <= FFmpegDecoder.cpp > Compile++ thumb : osgdb_ffmpeg <= FFmpegDecoderVideo.cpp > In file included from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10:0, > from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:2: > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11:32: > fatal error: libavcodec/avcodec.h: No such file or directory > compilation terminated. > make[3]: *** [obj/local/armeabi/objs/osgdb_ffmpeg/FFmpegClocks.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... > In file included from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp:6:0, > from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:1: > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11:32: > fatal error: libavcodec/avcodec.h: No such file or directory > compilation terminated. > make[3]: *** [obj/local/armeabi/objs/osgdb_ffmpeg/FFmpegDecoderVideo.o] > Error 1 > In file included from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10:0, > from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9, > from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoder.hpp:5, > from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:2: > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11:32: > fatal error: libavcodec/avcodec.h: No such file or directory > compilation terminated. > make[3]: *** [obj/local/armeabi/objs/osgdb_ffmpeg/FFmpegDecoder.o] Error 1 > In file included from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10:0, > from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9, > from > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:1: > /home/ttpl/Android/OSG/ffmpeg_Plugin/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11:32: > fatal error: libavcodec/avcodec.h: No such file or directory > compilation terminated. > make[3]: *** [obj/local/armeabi/objs/osgdb_ffmpeg/FFmpegDecoderAudio.o] > Error 1 > make[2]: *** [Android-OpenSceneGraph] Error 2 > make[1]: *** [CMakeFiles/ndk.dir/all] Error 2 > make: *** [all] Error 2 > > > > ... > > > Thank you! > > Cheers, > Koduri > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=52274#52274 > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Jordi Torres Fabra gvSIG 3D blog http://gvsig3d.blogspot.com
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

