title: Compiling FFMPEG x265 not found using pkg-config
body: <p>I'm trying to compile FFMPEG with x265 on Win10. I am using the latest full MinGW build from xhmikosr found at:</p>
  
  <pre><code>http://xhmikosr.1f0.de/tools/msys/
  </code></pre>
  
  <p>FFMEPG without x265 compiles without problems and compiling x265 standalone works without problems too.
  However when i --enable-libx265 in ffmpeg i get the following error:</p>
  
  <pre><code>ERROR: x265 not found using pkg-config
  </code></pre>
  
  <p>and this from the config.log:</p>
  
  <pre><code>require_pkg_config libx265 x265 x265.h x265_api_get
  check_pkg_config libx265 x265 x265.h x265_api_get
  test_pkg_config libx265 x265 x265.h x265_api_get
  false --exists --print-errors x265
  ERROR: x265 not found using pkg-config
  </code></pre>
  
  <p>my config paths seem to be all set correct.</p>
  
  <pre><code>$ echo $PKG_CONFIG_PATH
  C:\MYSYS\local\x86_64-w64-mingw32\lib\pkgconfig
  </code></pre>
  
  <p>and when i look for the libraries x265 is there:</p>
  
  <pre><code>$ pkg-config --list-all
  ...
  x265          x265 - H.265/HEVC video encoder
  ...
  </code></pre>
  
  <p>and here the debug log:</p>
  
  <pre><code>$ pkg-config --debug
  ...
  File 'x265.pc' appears to be a .pc file
  Will find package 'x265' in file 'C:/MYSYS/local/x86_64-w64-mingw32/lib/pkgconfig\x265.pc'
  ...
  </code></pre>
  
  <p>Why does pkg-config still not find the x265 libraries when i try to compile?</p>