title: Compiling x264 for i386
body: <p>How would I compile the x264 library for the i386 architecture? Usually to force an architecture I would use the follow command:</p>
  
  <pre><code>./configure CC="gcc -arch i386" CXX="g++ -arch i386"
  </code></pre>
  
  <p>But it doesn't seem to work for x264.</p>
  
  <p>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: </p>
  
  <blockquote>
    <p>Unknown option CC=gcc -arch i386, ignored Unknown option CXX=g++ -arch i386, ignored</p>
  </blockquote>
  
  <p>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.</p>