[x264-devel] windows x64 question

Steven Walters kemuri9 at gmail.com
Sun Feb 6 18:56:38 CET 2011


On Sun, Feb 6, 2011 at 12:02 PM, doron jacoby <doron.jacoby at gmail.com> wrote:
> Thanks a lot for your help.
>
> i wonder, does mingw64 project should solve the MSVC linking issues?

No, there are still linking issues when trying link MinGW x86_64 built libx264.a
with MSVC x86_64.

In x264's case, the errors are mostly repeat definitions caused by a
conflict between MSVC's libcmt and MinGW64's
libmscvrt.a. Preventing linking against MSVC's libcmt can be done but
this no longer allows one to generate an
console application executable binary with MSVC, as MSVC's
mainCRTStartup method is defined in it and is mandatory.


It is much easier if you simply compile x264 with the Intel Compiler
for Windows and link against
the generated static library from it, or get it from someone who has
compiled it.

> what are the differences between x86-64-pc and x86-64-w64? does the later
> use mingw64?

the host triplets are 'x86_64-pc-mingw64' and 'x86_64-w64-mingw64',
the latter being the official triplet used by the MinGW64 team.

I believe the MinGW64 team uses 'w64' to indicate that windows 64 is a
'special platform'
as it does have special needs with its differing calling convention
compared to linux x86_64 systems.

Some independent builders are still using 'pc' in the prefix/triplet,
so that's where the difference comes from.
they are both mingw64 however.


More information about the x264-devel mailing list