<div dir="ltr"><div>Hi</div><div><br></div><div>I tried to compile x264 with MSVC toolchain. And the full line for configure is:</div><div><div>CC=cl ./configure --disable-shared --enable-static --extra-cflags="-MD"</div><div>(or for static runtime link)</div><div>CC=cl ./configure --disable-shared --enable-static --extra-cflags="-MT"</div></div><div><br></div><div>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".</div><div>Therefore, invoking "vcvarsall.bar amd64" in systems that are not in english prior to configure doesn't make it configure as x64, but x86.</div><div><br></div><div>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.</div><div><br></div><div>Thanks.</div><div>David</div><div><br></div><div>===</div><div><div><br></div><div>Or to make sure, if i may insist, compiling a program like below one as for test would be more accurate:</div><div><br></div><div>  #include <stdio.h></div><div>  int main(void)</div><div>  {</div><div>    printf("%u\n", sizeof(int*));</div><div>    return 0;</div><div>  }</div></div><div><br></div><div><br></div></div>