I have a project I want to cross compile for Win64 from my Linux machine
(x86_64 CentOS 6.5 eventually, but x86_64 Debian 7 for the below
test). For reasons, life will be much better and easier for me if I
compile the toolchain from source. (I know that on Debian I can apt-get
install, but I'm testing the compile instructions here before I move
elsewhere.)
I'm following these instructions:
http://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/
I'm disabling multilib, since I only need Win64. I'm also using the
sysroot/prefix options. I see some supported version numbers for
binutils and gcc there, but the version of mingw itself is unclear. The
latest stable seems to be 3.3, so I'm using that. (The 4.x releases are
all "rc"--maybe I'm reading too much into that.)
binutils 2.25 builds and installs fine. I set my path to have those bins
in there.
Now we come to the "header set" part. First, I'm confused by step 1:
"The source directory for the headers can be
mingw-w64/trunk/mingw-w64-headers, or mingw-w64/mingw-w64-headers
depending on your source."
What am I supposed to do with this information? There doesn't seem to be
anything to do here, so I did nothing other than nod politely.
Step 2 says I should: ../path/to/configure --build=<your build machine>
--host=x86_64-w64-mingw32 --prefix=/mypath
Not totally clear how "my build machine" is supposed to be
specified. Machine name? Some kind of indicator string? Machine name
failed, so I tried some possibilities:
1) ../mingw-w64-v3.3.0/configure --build=x86_64
--host=x86_64-w64-mingw32 --prefix=<my prefix>/x86_64-w64-mingw32
result: configure: error: Please check if the mingw-w64 header set and the
build/host option are set properly.
configure: error: ../../mingw-w64-v3.3.0/mingw-w64-crt/configure
failed for mingw-w64-crt
2) ../mingw-w64-v3.3.0/configure --build=x86_64-w64-mingw32
--host=x86_64-w64-mingw32 --prefix=<my prefix>/x86_64-w64-mingw32
result: configure: error: Please check if the mingw-w64 header set and the
build/host option are set properly.
configure: error: ../../mingw-w64-v3.3.0/mingw-w64-crt/configure
failed for mingw-w64-crt
Same failure either way. Perhaps I've chosen my "build machine" string
badly. OTOH, the error talks about the "header set", so maybe back when
I nodded politely I should have taken some action. But what?
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public