Hey Robert,

I got that to work! Thank you very much!

-Sean

On Thu, Apr 30, 2009 at 7:50 AM, Robert Osfield <[email protected]>wrote:

> Hi Sean,
>
> Ubunutu has ffmpeg in the repositories so you could use this instead.
> Or just enable the shared library build in ffmpeg to make to it builds
> .so rather than .a's.
>
> Robert.
>
> On Thu, Apr 30, 2009 at 6:31 AM, Sean Neilan <[email protected]> wrote:
> > Hey All,
> >
> > I'm wondering if any of you could help me understand why openscenegraph
> is
> > still telling me to build ffmpeg with -fPIC
> >
> > I'm building the svn of openscenegraph from source by doing:
> > ./configure && make
> > and when it's around 97%, I get this:
> >
> > Scanning dependencies of target osgdb_ffmpeg
> > [ 96%] Building CXX object
> > src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.o
> > [ 96%] Building CXX object
> > src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:
> > In member function ‘size_t
> osgFFmpeg::FFmpegDecoderAudio::decodeFrame(void*,
> > size_t)’:
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:254:
> > warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*,
> const
> > uint8_t*, int)’ is deprecated (declared at
> > /usr/local/include/libavcodec/avcodec.h:3098)
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:254:
> > warning: ‘int avcodec_decode_audio2(AVCodecContext*, int16_t*, int*,
> const
> > uint8_t*, int)’ is deprecated (declared at
> > /usr/local/include/libavcodec/avcodec.h:3098)
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:287:
> > warning: comparison between signed and unsigned integer
> > expressions
> > [ 96%] Building CXX object
> > src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:
> > In member function ‘bool
> > osgFFmpeg::FFmpegDecoder::readNextPacketNormal()’:
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:286:
> > warning: comparison between signed and unsigned integer
> > expressions
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:293:
> > warning: comparison between signed and unsigned integer
> > expressions
> > [ 97%] Building CXX object
> > src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderVideo.o
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:
> > In member function ‘void osgFFmpeg::FFmpegDecoderVideo::decodeLoop()’:
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:160:
> > warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const
> > uint8_t*, int)’ is deprecated (declared at
> > /usr/local/include/libavcodec/avcodec.h:3155)
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:160:
> > warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const
> > uint8_t*, int)’ is deprecated (declared at
> > /usr/local/include/libavcodec/avcodec.h:3155)
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:170:
> > warning: comparison between signed and unsigned integer expressions
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:172:
> > warning: comparison between signed and unsigned integer expressions
> >
> /home/sneilan/Desktop/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp:176:
> > warning: comparison between signed and unsigned integer expressions
> > [ 97%] Building CXX object
> > src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegImageStream.o
> > [ 97%] Building CXX object
> > src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegAudioStream.o
> > [ 97%] Building CXX object
> > src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.o
> > Linking CXX shared module ../../../lib/osgPlugins-2.9.4/osgdb_ffmpeg.so
> > /usr/bin/ld: /usr/local/lib/libavcodec.a(dsputil_mmx.o): relocation
> > R_X86_64_PC32 against symbol `ff_pw_20' can not be used when making a
> shared
> > object; recompile with -fPIC
> > /usr/bin/ld: final link failed: Bad value
> > collect2: ld returned 1 exit status
> > make[2]: *** [lib/osgPlugins-2.9.4/osgdb_ffmpeg.so] Error 1
> > make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all]
> Error 2
> > make: *** [all] Error 2
> >
> > I've compiled ffmpeg from the latest svn with these options:
> > ./configure --enable-gpl --enable-pthreads --enable-postproc
> > --enable-libmp3lame --enable-libx264 --enable-libfaac
> --extra-cflags=-fPIC
> > --enable-nonfree
> >
> > So, I am compiling with fPIC and it still doesn't work.
> >
> > I'm running ubuntu 64 9.04 with all the other dependencies satisfied with
> > apt-get.
> >
> > Thank you for your time.
> >
> > -Sean Neilan
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to