[Ffmpeg-devel] 64bit support
Rich Felker
dalias
Sun Jun 26 22:14:05 CEST 2005
On Sun, Jun 26, 2005 at 10:03:12PM +0200, msh.onliners.dk at webmail.pil.dk wrote:
> Hi,
>
> I dont know if this is a know issue but ffmpeg fails to build on 64 bit
> machins - I've tried on two.
You should say what kind of 64bit machine you mean. I assume x86-64.
> The result is like this:
>
> ...
>
> rm -f libavcodec.a
> ar rc libavcodec.a common.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 dv.o
> error_resilience.o fft.o mdct.o mace.o huffyuv.o cyuv.o opts.o raw.o
> h264.o golomb.o vp3.o asv1.o 4xm.o cabac.o ffv1.o ra144.o ra288.o vcr1.o
> cljr.o roqvideo.o dpcm.o interplayvideo.o xan.o rpza.o cinepak.o msrle.o
> msvideo1.o vqavideo.o idcinvideo.o adx.o rational.o faandct.o 8bps.o smc.o
> parser.o flicvideo.o truemotion1.o vmdav.o lcl.o qtrle.o g726.o flac.o
> vp3dsp.o integer.o h263.o h261.o msmpeg4.o h263dec.o svq1.o rv10.o
> wmadec.o indeo3.o
> ranlib libavcodec.a
> gcc -shared -o libavcodec.so common.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
> dv.o error_resilience.o fft.o mdct.o mace.o huffyuv.o cyuv.o opts.o raw.o
> h264.o golomb.o vp3.o asv1.o 4xm.o cabac.o ffv1.o ra144.o ra288.o vcr1.o
> cljr.o roqvideo.o dpcm.o interplayvideo.o xan.o rpza.o cinepak.o msrle.o
> msvideo1.o vqavideo.o idcinvideo.o adx.o rational.o faandct.o 8bps.o smc.o
> parser.o flicvideo.o truemotion1.o vmdav.o lcl.o qtrle.o g726.o flac.o
> vp3dsp.o integer.o h263.o h261.o msmpeg4.o h263dec.o svq1.o rv10.o
> wmadec.o indeo3.o -lm -lz -ldl -Wl,--warn-common -rdynamic
> /usr/bin/ld: common.o: relocation R_X86_64_32 against `a local symbol' can
> not be used when making a shared object; recompile with -fPIC
> common.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [libavcodec.so] Error 1
> make[1]: Leaving directory `/usr/src/ffmpeg-0.4.9-pre1/libavcodec'
> make: *** [lib] Error 2
So it doesn't fail to build unless you use shared libs, which is
explicitly not recommended. Recompile without --enable-shared and it
will work fine.
Rich
More information about the ffmpeg-devel
mailing list