Compiling VLC 0.9 with ffmpeg
Posted: 26 Apr 2008 20:27
Hey,
I've been trying for about a week now to properly compile vlc using the ffmpeg svn. The reason I need to do so is that I need a few things enabled (lame, swscale). However the problem I always get is that it gives me an error telling me to recompile with -fPIC
Hence I have tried to with many different methods, here is the most obvious one i suppose for configuring ffmpeg:
./configure --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libx264 --enable-libfaac --extra-cflags=-fPIC
And here is a typical configuration for vlc I've tried (bear in mind ive tried many many different configs ie. adding -fPIC to vlcs cflags to get this to work but all were unsuccessfull).
./configure --prefix=/usr/local --with-ffmpeg-tree=./extras/ffmpeg --with-ffmpeg-faac --with-ffmpeg-mp3lame --enable-x11 --enable-xvideo --disable-gtk --enable-sdl --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-caca --enable-skins --enable-skins2 --enable-alsa --disable-kde --enable-qt --enable-ncurses --enable-release --enable-x264 --enable-dvb --enable-libdvbpsi
But even with this I still get an error looking like this:
/usr/bin/ld: /home/chimp/vlc/extras/ffmpeg/libavcodec/libavcodec.a(dsputil_mmx.o): relocation R_X86_64_PC32 against `ff_pw_20' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
Adding the fPIC to the vlc compile also gives similar errors. I have searched the net and found multiple people with similar problems, but have not as of yet found a solution, any help would be greatly appreciated.
Compiling computer is intel core 2 quad, 8 gig of ram, ubuntu 8.04 server edition.
I've been trying for about a week now to properly compile vlc using the ffmpeg svn. The reason I need to do so is that I need a few things enabled (lame, swscale). However the problem I always get is that it gives me an error telling me to recompile with -fPIC
Hence I have tried to with many different methods, here is the most obvious one i suppose for configuring ffmpeg:
./configure --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libx264 --enable-libfaac --extra-cflags=-fPIC
And here is a typical configuration for vlc I've tried (bear in mind ive tried many many different configs ie. adding -fPIC to vlcs cflags to get this to work but all were unsuccessfull).
./configure --prefix=/usr/local --with-ffmpeg-tree=./extras/ffmpeg --with-ffmpeg-faac --with-ffmpeg-mp3lame --enable-x11 --enable-xvideo --disable-gtk --enable-sdl --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-caca --enable-skins --enable-skins2 --enable-alsa --disable-kde --enable-qt --enable-ncurses --enable-release --enable-x264 --enable-dvb --enable-libdvbpsi
But even with this I still get an error looking like this:
/usr/bin/ld: /home/chimp/vlc/extras/ffmpeg/libavcodec/libavcodec.a(dsputil_mmx.o): relocation R_X86_64_PC32 against `ff_pw_20' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
Adding the fPIC to the vlc compile also gives similar errors. I have searched the net and found multiple people with similar problems, but have not as of yet found a solution, any help would be greatly appreciated.
Compiling computer is intel core 2 quad, 8 gig of ram, ubuntu 8.04 server edition.