qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Cross compile install (win32 binaries/mingw)
@ 2005-03-14  8:22 Damien Mascord
  2005-03-14  8:44 ` Damien Mascord
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Mascord @ 2005-03-14  8:22 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Cross compile install (win32 binaries/mingw)
  2005-03-14  8:22 [Qemu-devel] Cross compile install (win32 binaries/mingw) Damien Mascord
@ 2005-03-14  8:44 ` Damien Mascord
  2005-03-14 15:01   ` [Qemu-devel] " Ronald
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Mascord @ 2005-03-14  8:44 UTC (permalink / raw)
  To: qemu-devel

Damien Mascord wrote:
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: Cross compile install (win32 binaries/mingw)
  2005-03-14  8:44 ` Damien Mascord
@ 2005-03-14 15:01   ` Ronald
  2005-03-14 16:09     ` Damien Mascord
  0 siblings, 1 reply; 5+ messages in thread
From: Ronald @ 2005-03-14 15:01 UTC (permalink / raw)
  To: qemu-devel

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

> Damien Mascord wrote:
>> 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 ?
> 

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

> Cheers,
> 
> Damien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Re: Cross compile install (win32 binaries/mingw)
  2005-03-14 15:01   ` [Qemu-devel] " Ronald
@ 2005-03-14 16:09     ` Damien Mascord
  2005-03-14 17:24       ` [Qemu-devel] " Ronald
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Mascord @ 2005-03-14 16:09 UTC (permalink / raw)
  To: qemu-devel

Ronald wrote:

>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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: Re: Cross compile install (win32 binaries/mingw)
  2005-03-14 16:09     ` Damien Mascord
@ 2005-03-14 17:24       ` Ronald
  0 siblings, 0 replies; 5+ messages in thread
From: Ronald @ 2005-03-14 17:24 UTC (permalink / raw)
  To: qemu-devel

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

> Ronald wrote:
> 
>>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...
> 

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.

> 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
 
> Damien

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-03-14 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-14  8:22 [Qemu-devel] Cross compile install (win32 binaries/mingw) Damien Mascord
2005-03-14  8:44 ` Damien Mascord
2005-03-14 15:01   ` [Qemu-devel] " Ronald
2005-03-14 16:09     ` Damien Mascord
2005-03-14 17:24       ` [Qemu-devel] " Ronald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).