Re: Ogle on x86-64 build fix

sean <[email protected]> Thu, 09 Dec 2004 15:10:30 -0500
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Matthias Saou wrote:
> Hi,
> 
> I had posted long ago to report build issues on AMD64. Here is a quick
> build fix that someone suggested to me, and it seems to work. I guess
> implementing it in a nicer way would be a good thing.
> 
> All one needs to do is replace lines ending with "/lib" with "/lib64" (for
> libdvdread detection) in the configure script, then replace the "-ldvdread"
> with "-ldl -ldvdread" to fix the build error.
> 
> With this, I got working x86_64 rpm packages of ogle 0.9.2.
> 
> Matthias
> 

1. Someone commited a cvs patch today to fix this. There's a typo.  "ldl" should be "-ldl"

2. I had to do more than this to get today's cvs to build.

--disable-mmx was easy. BTW, configure.in explicitly turns mmx on for x86_64. It may work for somebody, but it cetainly 
didn't work on my amd64 box.

ogle insisted on using a52dec and libmad  in /usr/lib, even though it was configured with --with-liba52=/usr/lib64 
--with-libmad=/usr/lib64:

gcc -fomit-frame-pointer -funroll-loops -march=athlon64 -O2 -ffast-math -fomit-frame-pointer -funit-at-a-time -Wall -o 
.libs/ogle_audio audio_out.o audio_types.o parse_config.o audio_config.o conversion.o audio_play.o decode.o decode_a52.o 
decode_lpcm.o decode_mpeg.o decode_dts.o  ../common/libcommon.a ../ogle/.libs/libmsgevents.so 
./libogleao/.libs/libogleao.a -lasound -L/usr/lib64/lib64 /usr/lib/liba52.so -L/usr/lib64 -lmad /usr/lib64/libxml2.so 
-lz -lpthread -lm -lnsl -lrt -Wl,--rpath -Wl,/usr/lib64/ogle -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64/lib64 
-Wl,--rpath -Wl,/usr/lib
/usr/lib/liba52.so: could not read symbols: File in wrong format

Not knowing any autotools magic, I went into configure.in and hardwired a52 and libmad to use /usr/lib64.

And then it built.

Now  we'll see if it actually works!

sean