How would I compile the x264 library for the i386 architecture? Usually to force an architecture I would use the follow command:
./configure CC="gcc -arch i386" CXX="g++ -arch i386"
But it doesn't seem to work for x264.
To compile x264 I configure it and make it, this produces an x86_64 library. When I attempt to use the above command to force the i386 architecture I receive the following message:
Unknown option CC=gcc -arch i386, ignored Unknown option CXX=g++ -arch i386, ignored
The configure script then prints that it is configured for the X86_64 platform. I want to see it configured for the i386 platform and to produce an i386 binary.
Autotooled configure scripts have special command-line arguments --build and --host that they use to configure cross-compilation. Some old configure scripts attempt to figure out they are cross-compiling by inspecting the output of the compiler, but telling the configure script explicitly is much saner and more robust.
See here, for example. Or this question.
(Oh, and the immediate reason for the "Unknown option" errors you're seeing is that environment-variable overrides go before the name of the script on the sh command line, not after it. It's not make, where variable definitions can be given on the make command line itself.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With