Hello Ron, On Tue, 9 Aug 2005 13:36:26 -0700 Ron Young wrote:
I am looking at the mplayer32 Pkgfile. I want to install xine. I usually use mplayers codecs with xine. It looks like I need to install xine as a 32bit app. Is this true?
Yes, it is true. Only 32bit binaries are able to link against mplayer32's 32bit libraries (/usr/lib32/libdha.so.1 and /usr/lib32/mplayer/vidix/*). You cannot mix up both, 32bit and 64bit code [1].
Is the mplayer32 Pkgfile a good model to follow?
Ehm, actually no. mplayer is an exception because the configure script tries to detect the best CFLAGS/optimization flags for your system. Normally you have to set CFLAGS/CXXFLAGS yourself. I would recommend you to place the following lines at the beginning of your xine32's build() function: export PKG_CONFIG_PATH=/usr/lib32/pkgconfig # we want a 32bit C-compiler, C++-compiler and assembler export CC="gcc -m32" export CXX="g++ -m32" export AS="as --32" # use standard i686 optimization export CFLAGS="-O2 -march=i686 -pipe" export CXXFLAGS="-O2 -march=i686 -pipe" Furthermore you need to specify two configure options: --libdir=/usr/lib32 ==> Do not install files in /usr/lib! --x-libraries=/usr/X11R6/lib32 ==> X-libraries are in lib32 not lib64!
Where does X11 or X11-32 come in??
What do you mean? You definitely need x11-32. bye, danm [1] http://www.amd.com/us-en/assets/content_type/DownloadableAssets/Porting_x86_... -- Daniel Mueller http://www.danm.de Berlin, Germany OpenPGP: 1024D/E4F4383A