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

Ashe Goulding ashegoulding at gmail.com
Wed Aug 5 07:35:09 CEST 2015


>From commit 121396c71b4907ca82301d1a529795d98daab5f8
in "configure" line 540.

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, only "x64" or "x86" will appear.
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(540, 541) to just "x86" or "x64" will
fix this and allows it to configure for x64. I was able to compile 64bit
with this remedy.

====
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/20150805/e0600f09/attachment.html>


More information about the x264-devel mailing list