title: VLC libx264 build error - "undefined reference to 'x264_encoder_open_128'"
body: <h2>Primary issue</h2>
  
  <p>Steps to attempt to repeat this error.</p>
  
  <p><ul>
  <li>Download latest git (git://git.videolan.org/x264.git).</li>
  <li>Run <code>./configure</code> - You can use any options, the error is present with all.</li>
  <li>Run <code>sudo make</code> - It will compile all of the code but when it comes time to link the code it runs into the error </p>
  
  <blockquote>
    <p>/usr/local/lib/libavcodec.a(libx264.o): In function 'X264_init':<br>
    /.../libx264.c:418: undefined reference to 'x264_encoder_open_128'</li>
    </ul>
    This will then fall out and exit make. I have removed all apt packages relating to x264. I have searched my computer for any possible libraries that might be related and removed them. This problem persists. Can someone explain what is going wrong and the simplest way to solve this?</p>
  </blockquote>
  
  <h2>Additional info</h2>
  
  <p>This error also shows up when building <a href="http://libav.org/index.html" rel="nofollow">avconv</a>. It also fails at linking time with the same error. So I can assume it is nothing wrong with that directory or source.</p>