View Full Version : 64bit x264 on Mac OSX
MySchizoBuddy
12th February 2008, 01:55
I got 32bit version of x264 compiled (with mp4 support) and running on mac osx leopard.
How do I enable 64bit version.
Looking at the config.mak, the ARCH=X86 it should be ARCH=X86_64, since intel macs are all 64bit os and chip.
So what are my options
AGDenton
12th February 2008, 10:10
Someone did the work for you :).
Just run the configure script with --host=x86_64-darwin. You may also want to disable mp4 support, since there's nothing in ./configure to check that libgpac_static is 64-bit as well (that is, except if you've got a 64-bit gpac). Make sure you've got a recent version (>0.6) of yasm.
AG
akupenguin
12th February 2008, 11:55
You may also want to disable mp4 support, since there's nothing in ./configure to check that libgpac_static is 64-bit as well (that is, except if you've got a 64-bit gpac).
What it checks for is that you can compile something linked to libgpac_static. So autodetection works regardless of architecture.
MySchizoBuddy
12th February 2008, 12:28
yup without a 64bit gpac, it doesn't compile with mp4 support
ld: warning in /usr/local/lib/libgpac_static.a, file is not of required architecture
it compiled without mp4, how do i confirm its 64bit, doing x264 --help tells me nothing about the architecture
gpac cannot compile 64bit version cause its looking for a 64 bit version of X11 that doesn't exist on the mac.
B4tm4n
12th February 2008, 13:15
I got 32bit version of x264 compiled (with mp4 support) and running on mac osx leopard.
How do I enable 64bit version.
Looking at the config.mak, the ARCH=X86 it should be ARCH=X86_64, since intel macs are all 64bit os and chip.
So what are my options
I have a 32bit x264 compiled and running on Tiger, what benefits would a 64 bit version have over the 32 if any ?
Cheers.
akupenguin
12th February 2008, 13:58
how do i confirm its 64bit, doing x264 --help tells me nothing about the architecture
file(1) (http://www.linuxmanpages.com/man1/file.1.php)
AGDenton
12th February 2008, 15:15
gpac cannot compile 64bit version cause its looking for a 64 bit version of X11 that doesn't exist on the mac.
The library itself (make lib) doesn't need X11, I think, since I had no trouble compiling it :
Universal libgpac_static(i386,x86_64,ppc) (http://dl.free.fr/hmznHC71E/libgpac_static.a)
AG
cacepi
12th February 2008, 20:08
The library itself (make lib) doesn't need X11, I think, since I had no trouble compiling it
Excellent! New binary:
x264 64-bit Universal with mp4 support (http://www.filesend.net/download.php?f=112aa5f7aa61822e5c2e2e802829a900), plus 32-bit for those on Yonah (Core Duo/Solo) machines.
MySchizoBuddy
13th February 2008, 01:30
in gpac configure script you have this line
if test "$is_64" = "yes"; then
echo "X11_LIB_PATH=$X11_PATH/lib64" >> config.mak
so i should just point it to lib instead of lib64
cacepi, what was your configure line
plus did you do make install-lib or make apps
cacepi
13th February 2008, 02:55
cacepi, what was your configure line
plus did you do make install-lib or make apps
You're asking the wrong guy. I didn't build the gpac library above: AGDenton did. Ask him.
moonwatcher
7th April 2008, 00:03
AGDenton, can you please post your configure line and setup for building that x86_64 libgpac_static.a ?
i am having a hard time building one.
Did you build it on Leopard? Did you satisfy the dependencies with packages from macports or did you install them manually?
MySchizoBuddy
27th August 2008, 21:46
if you run this
cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'
it tells you whether your processor is i686 or x86_64. Apparently mine core 2 duo imac is classified as i686. So i guess i cannot make a 64 version of gpac nor x264.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.