From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8wKS-0002sd-KW for qemu-devel@nongnu.org; Thu, 01 Apr 2004 02:09:32 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8wJv-0002lE-L8 for qemu-devel@nongnu.org; Thu, 01 Apr 2004 02:09:30 -0500 Received: from [216.254.0.205] (helo=mail5.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B8wJv-0002l1-6K for qemu-devel@nongnu.org; Thu, 01 Apr 2004 02:08:59 -0500 Received: from dsl081-088-222.lax1.dsl.speakeasy.net (HELO lhosts) ([64.81.88.222]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 1 Apr 2004 07:08:57 -0000 Subject: Re: [Qemu-devel] Re: QEMU News: Win32 Port From: "John R. Hogerhuis" In-Reply-To: <20040401022502.GA28949@xi.wantstofly.org> References: <406B5612.5050701@bellard.org> <406B5836.7020503@bellard.org> <20040401022502.GA28949@xi.wantstofly.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-c2trbZt2mcR/Ebl2hY09" Message-Id: <1080803376.29534.42.camel@aragorn> Mime-Version: 1.0 Date: Wed, 31 Mar 2004 23:09:36 -0800 Reply-To: jhoger@pobox.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-c2trbZt2mcR/Ebl2hY09 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I get the same behavior... qemu that is built just silently exits, with no output. The SDL probe can be fixed by moving it down just after cc is redefined to include the cross compiler prefix. I did the same thing you did and removed the -lutil prefix to get the last step to compile. There does seem to be one more issue in the install for the main Makefile... it wants to copy a the qemu-mkcow utility but the TOOLS macro is already set to nothing because CONFIG_WIN32 is defined. Some details: I am using the following to build SDL: ./configure --host=3Di586-mingw32msvc --disable-nasm --prefix=3D/home/john/projects/SDL-1.2.7 I added /home/john/projects/SDL-1.2.7 to beginning of my path so that sdl-config would be found there. Then I configured QEMU to make the cross compiler prefix under the --enable-mingw32 option to match my compiler. I ran ./configure --enable-mingw32 --prefix=3D/home/john/projects/qemu make install qemu.exe gets created in i386-softmmu I copied qemu.exe and SDL.dll from the SDL build to my vmware Win2K, and upon running it fails as described above. I wonder if I am missing copying over some library to the windows box. -- John. On Wed, 2004-03-31 at 18:25, Lennert Buytenhek wrote: > On Thu, Apr 01, 2004 at 01:45:58AM +0200, Fabrice Bellard wrote: >=20 > > >I commited an experimental win32 port of QEMU. I did not test it yet,=20 > > >but it compiles. It is based on Kazu port, but I made heavy=20 > > >modifications to minimize the number of ifdefs and to factorize the=20 > > >"dyngen" utility code. > > > > > >In order to compile it, look at=20 > > >http://www.h7.dion.ne.jp/~qemu-win/PortingTips-en.html. > >=20 > > I should not have given this URL because Cygwin is _not_ needed to=20 > > compile QEMU. Instead use the following steps (taken from the FFmpeg=20 > > project doc): >=20 > I guess cross-compiling for Windows from a linux host isn't supported? > These are the problems I stumble over when I try to do just that: > * The SDL probe in 'configure' uses the host's CC instead of the target > CC, causing the probe to fail. > * After hacking around that, it appears that dyngen is compiled as a .exe > instead of a host binary, causing Wine to launch whenever dyngen is use= d > in the build process. > * -lutil is used for final linking, but libutil.a is a component of glibc= , > and I didn't dare trying to build it for Windows (does that even work? = :) > It doesn't even seem to be needed -- removing the '-lutil' causes a > qemu.exe to be built anyway. >=20 > After qemu.exe is built, it doesn't seem to work. It does run, but simpl= y > refuses to output anything: >=20 > F:\>qemu.exe >=20 > F:\> >=20 >=20 > cheers, > Lennert >=20 >=20 > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://mail.nongnu.org/mailman/listinfo/qemu-devel >=20 >=20 --=-c2trbZt2mcR/Ebl2hY09 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAa8AwfY9MuGaNkEERAqIoAJ9TfXKH3tYOTGcnF1Ix5DrUDiQwbgCgjmUL rnsU7A8rsj1dPmBM+gcGnls= =icQX -----END PGP SIGNATURE----- --=-c2trbZt2mcR/Ebl2hY09--