[Ffmpeg-devel] ffmpeg + x264 + enable shared on Pentium D (64 bit)

Martin martin
Wed Mar 8 15:39:13 CET 2006


Hi, 

i have problems building ffmpeg with x264 as shared lib:

./configure --enable-mp3lame --enable-x264 --enable-gpl --enable-shared --
prefix=/usr/local --extra-cflags='-fPIC' --extra-ldflags='-fPIC'

.
.
.
ffmpeg-newx264/ffmpeg'/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -
D_GNU_SOURCE  -fPIC -DPIC -c -o i386/vp3dsp_sse2.o i386/vp3dsp_sse2.c
gcc -O3 -g -Wall -Wno-switch  -fPIC -DHAVE_AV_CONFIG_H -I.. -
I'/home/itec/prangl/ffmpeg-newx264/ffmpeg'/libavutil -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE_SOURCE -D_GNU_SOURCE  -fPIC -DPIC -c -o i386/idct_mmx_xvid.o 
i386/idct_mmx_xvid.c
rm -f libavcodec.a
ar rc libavcodec.a bitstream.o utils.o mem.o allcodecs.o mpegvideo.o jrevdct.o 
jfdctfst.o jfdctint.o mpegaudio.o ac3enc.o mjpeg.o resample.o resample2.o 
dsputil.o motion_est.o imgconvert.o imgresample.o mpeg12.o mpegaudiodec.o pcm.o 
simple_idct.o ratecontrol.o adpcm.o eval.o error_resilience.o fft.o mdct.o 
raw.o golomb.o cabac.o dpcm.o adx.o faandct.o parser.o g726.o vp3dsp.o 
h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o opt.o aasc.o alac.o 
asv1.o cinepak.o cook.o cljr.o cyuv.o dvbsubdec.o dvbsub.o dvdsub.o dvdsubenc.o 
dv.o 8bps.o ffv1.o flac.o flicvideo.o 4xm.o fraps.o h261.o h264.o huffyuv.o 
idcinvideo.o indeo2.o indeo3.o interplayvideo.o lcl.o loco.o mace.o msrle.o 
msvideo1.o png.o qdm2.o qdrw.o qpeg.o qtrle.o ra144.o ra288.o roqvideo.o rpza.o 
rv10.o shorten.o smc.o snow.o sonic.o svq1.o truemotion1.o truemotion2.o tscc.o 
ulti.o vc9.o vcr1.o vmdav.o vorbis.o vp3.o vqavideo.o wmadec.o wnv1.o ws-snd1.o 
xan.o xl.o bmp.o  x264.o mp3lameaudio.o i386/fdct_mmx.o i386/cputest.o 
i386/dsputil_mmx.o i386/mpegvideo_mmx.o i386/idct_mmx.o i386/motion_est_mmx.o 
i386/simple_idct_mmx.o i386/fft_sse.o i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o 
i386/idct_mmx_xvid.o
ranlib libavcodec.a
gcc -shared -Wl,-soname,libavcodec.so.51 -Wl,--warn-common -rdynamic -fPIC -o 
libavcodec.so bitstream.o utils.o mem.o allcodecs.o mpegvideo.o jrevdct.o 
jfdctfst.o jfdctint.o mpegaudio.o ac3enc.o mjpeg.o resample.o resample2.o 
dsputil.o motion_est.o imgconvert.o imgresample.o mpeg12.o mpegaudiodec.o pcm.o 
simple_idct.o ratecontrol.o adpcm.o eval.o error_resilience.o fft.o mdct.o 
raw.o golomb.o cabac.o dpcm.o adx.o faandct.o parser.o g726.o vp3dsp.o 
h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o opt.o aasc.o alac.o 
asv1.o cinepak.o cook.o cljr.o cyuv.o dvbsubdec.o dvbsub.o dvdsub.o dvdsubenc.o 
dv.o 8bps.o ffv1.o flac.o flicvideo.o 4xm.o fraps.o h261.o h264.o huffyuv.o 
idcinvideo.o indeo2.o indeo3.o interplayvideo.o lcl.o loco.o mace.o msrle.o 
msvideo1.o png.o qdm2.o qdrw.o qpeg.o qtrle.o ra144.o ra288.o roqvideo.o rpza.o 
rv10.o shorten.o smc.o snow.o sonic.o svq1.o truemotion1.o truemotion2.o tscc.o 
ulti.o vc9.o vcr1.o vmdav.o vorbis.o vp3.o vqavideo.o wmadec.o wnv1.o ws-snd1.o 
xan.o xl.o bmp.o  x264.o mp3lameaudio.o i386/fdct_mmx.o i386/cputest.o 
i386/dsputil_mmx.o i386/mpegvideo_mmx.o i386/idct_mmx.o i386/motion_est_mmx.o 
i386/simple_idct_mmx.o i386/fft_sse.o i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o 
i386/idct_mmx_xvid.o  -lm -lmp3lame -lx264 -lz -ldl -L../libavutil -lavutil
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-
linux/bin/ld: /usr/local/lib/libx264.a(common.o): relocation R_X86_64_32S 
against `a local symbol' can not be used when making a shared object; recompile 
with -fPIC
/usr/local/lib/libx264.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libavcodec.so] Fehler 1
make[1]: Leaving directory `/home/itec/prangl/ffmpeg-newx264/ffmpeg/libavcodec'
make: *** [lib] Fehler 2

whats wrong?
thx, 
Martin





More information about the ffmpeg-devel mailing list