Skip to contentSkip to conversation

Cross compile install (win32 binaries/mingw)

Qemu-devel Damien Mascord 2 participants 5 messages Mar 14, 2005

lore
Share & tools
lore
#0 lore raw

Hi guys,

I have succesfully built qemu (current CVS) for win32 using a mingw cross compile environment, though there were 2 caveats:

1) HAVE_GCC3_OPTIONS=yes was not set correctly (when using gcc 3.4.2 mingw)

2) dyngen.exe is not executable on linux (obviously), so I had to use wine to build it. (DYNGEN=/usr/bin/wine ../dyngen$(EXESUF))

Once the binaries are built, Windows 2003 SBS installs fine.

Is there any solution to either #1 or #2 ?

Cheers,

Damien

#1 lore raw
Quoted 6 lines · Damien Mascord

Hi guys,

I have succesfully built qemu (current CVS) for win32 using a mingw cross compile environment, though there were 2 caveats:

Once the binaries are built, Windows 2003 SBS installs fine.

That's an utter lie :) I was using the wrong binaries to launch qemu. [daily build 20050303 is fine, my build segfaults].

Any idea on how to succesfully build a cross compile install of qemu ?

Cheers,

Damien

#2 lore raw

Le Mon, 14 Mar 2005 16:44:36 +0800, Damien Mascord a écrit :

Quoted 6 lines
Quoted 4 lines · Damien Mascord

Hi guys,

I have succesfully built qemu (current CVS) for win32 using a mingw cross compile environment, though there were 2 caveats:

Quoted 7 lines
Quoted 1 line

Once the binaries are built, Windows 2003 SBS installs fine.

That's an utter lie :) I was using the wrong binaries to launch qemu. [daily build 20050303 is fine, my build segfaults].

Any idea on how to succesfully build a cross compile install of qemu ?

I am using gcc 3.3.1 (mingw special 20030804-1) for the windows build, using ./configure --enable-mingw32 should work without trouble. When cross compiling for windows, dyngen.exe is build with HOST_CC, it's a linux exe.

Here is how my toolchain is build, if it help:
http://daimon55.free.fr/qemu/mingw32.build

Quoted 3 lines

Cheers,

Damien

#3 lore raw
Quoted 10 lines · Ronald

I am using gcc 3.3.1 (mingw special 20030804-1) for the windows build, using ./configure --enable-mingw32 should work without trouble. When cross compiling for windows, dyngen.exe is build with HOST_CC, it's a linux exe.

Here is how my toolchain is build, if it help:
http://daimon55.free.fr/qemu/mingw32.build

Hi Ronald,

Thanks for your help! Now that dyngen is compiled with the correct toolchain (ie, HOST_CC), things seem to be cleaner.

I still need to specify HAVE_GCC3_OPTIONS=yes in config-host.mak though...

Would you happen to know how to get it to build with the directx 9 SDK ?

Damien

#4 lore raw

Le Tue, 15 Mar 2005 00:09:30 +0800, Damien Mascord a écrit :

Quoted 12 lines
Quoted 10 lines · Ronald

I am using gcc 3.3.1 (mingw special 20030804-1) for the windows build, using ./configure --enable-mingw32 should work without trouble. When cross compiling for windows, dyngen.exe is build with HOST_CC, it's a linux exe.

Here is how my toolchain is build, if it help:
http://daimon55.free.fr/qemu/mingw32.build

Quoted 7 lines

Hi Ronald,

Thanks for your help! Now that dyngen is compiled with the correct toolchain (ie, HOST_CC), things seem to be cleaner.

I still need to specify HAVE_GCC3_OPTIONS=yes in config-host.mak though...

What is your tools prefix? configure assume it's i386-mingw32- for mingw32 build, maybe it is where your problem is, you can pass --cross-prefix= to configure with the good prefix.
The test for gcc3 is done around line 247.

Quoted 2 lines

Would you happen to know how to get it to build with the directx 9 SDK ?

No, I use a directx 7.0 port from
http://jrfonseca.dyndns.org/projects/gnu-win32/software/ported/msvc/directx-7.0-mingw32.tar.bz2

Quoted 1 line

Damien