[mythtv] Error compiling mythtv cvs on athlon 64

Mike McLean libolt at libolt.net
Thu Dec 16 22:09:46 UTC 2004


I'm attempting to compile mythtv cvs on my athlon 64 running
debian-amd64 with a debian provided kernel 2.6.9-9-amd64-k8.

I was able to build 0.16 into debs from the repository that provides the
i386 debian unstable packages.  However I had problems with that version
and decided to try the CVS.

I modified the settings.pro and changed the QMAKE_CXXFLAGS_RELEASE as
follows:

        QMAKE_CXXFLAGS_RELEASE = -O3 -march=athlon64 -fPIC


However, it fails to build in libavcodec during the linking stage wit
the following:

rm -f libmythavcodec-0.16.so.0.16.0 libmythavcodec-0.16.so
libmythavcodec-0.16.so.0 libmythavcodec-0.16.so.0.16
g++ -shared -Wl,-soname,libmythavcodec-0.16.so.0 -o
libmythavcodec-0.16.so.0.16.0 common.o utils.o mem.o allcodecs.o
mpegvideo.o h263.o jrevdct.o jfdctfst.o mpegaudio.o ac3enc.o mjpeg.o
audresample.o dsputil.o motion_est.o imgconvert.o imgresample.o
msmpeg4.o mpeg12.o h263dec.o svq1.o rv10.o mpegaudiodec.o pcm.o
simple_idct.o ratecontrol.o adpcm.o eval.o jfdctint.o dv.o
error_resilience.o wmadec.o fft.o mdct.o mace.o huffyuv.o opts.o cyuv.o
golomb.o h264.o raw.o indeo3.o asv1.o vp3.o 4xm.o cabac.o ra144.o
ra288.o vcr1.o cljr.o roqvideo.o dpcm.o tscc.o interplayvideo.o xan.o
rpza.o cinepak.o msrle.o msvideo1.o vqavideo.o idcinvideo.o adx.o
rational.o faandct.o snow.o sonic.o 8bps.o parser.o smc.o flicvideo.o
truemotion1.o vmdav.o lcl.o qtrle.o g726.o flac.o vp3dsp.o integer.o
h261.o resample2.o h264idct.o png.o pnm.o qdrw.o qpeg.o rangecoder.o
ulti.o xl.o postprocess.o a52dec.o bit_allocate.o bitstream.o downmix.o
imdct.o parse.o crc.o resample.o fdct_mmx.o cputest.o dsputil_mmx.o
mpegvideo_mmx.o idct_mmx.o motion_est_mmx.o simple_idct_mmx.o fft_sse.o
vp3dsp_mmx.o vp3dsp_sse2.o   -L/usr/share/qt3/lib -L/usr/X11R6/lib
-lqt-mt -lXext -lX11 -lm -lpthread
/usr/bin/ld: postprocess.o: relocation R_X86_64_32S can not be used when
making a shared object; recompile with -fPIC
postprocess.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libmythavcodec-0.16.so.0.16.0] Error 1


I've checked to make sure it did compile the object files with -fPIC,
however I still get this error.

Any help would be greatly appreciated.

Mike



More information about the mythtv-dev mailing list