[x264-devel] Architecture detection method in configure script for CL(MSVC toolchain) is inappropriate.

장영훈 mieabby at gmail.com
Fri Aug 7 07:19:53 CEST 2015


Hi

I tried to compile x264 with MSVC toolchain. And the full line for
configure is:
CC=cl ./configure --disable-shared --enable-static --extra-cflags="-MD"
(or for static runtime link)
CC=cl ./configure --disable-shared --enable-static --extra-cflags="-MT"

But in "configure" script line 535, It looks for "for x86" or "for x64"
string to figure out what arch of CL is. However, in non-english
environments, cl.exe does not express itself as such, it will only print
either "x64" or "x86".
Therefore, invoking "vcvarsall.bar amd64" in systems that are not in
english prior to configure doesn't make it configure as x64, but x86.

As for remedy, modifying the lines(535, 536) to just "x86" or "x64" will
fix this and allows it to configure for x64. It works.

Thanks.
David

===

Or to make sure, if i may insist, compiling a program like below one as for
test would be more accurate:

  #include <stdio.h>
  int main(void)
  {
    printf("%u\n", sizeof(int*));
    return 0;
  }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20150807/a7a9ba95/attachment.html>


More information about the x264-devel mailing list