From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbwYv-0007MR-M6 for qemu-devel@nongnu.org; Tue, 15 Sep 2015 16:10:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbwYs-0004Sz-4t for qemu-devel@nongnu.org; Tue, 15 Sep 2015 16:10:45 -0400 Received: from [2a03:4000:1::4e2f:c7ac:d] (port=34746 helo=v220110690675601.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbwYr-0004S5-MC for qemu-devel@nongnu.org; Tue, 15 Sep 2015 16:10:42 -0400 Message-ID: <55F87B36.6040907@weilnetz.de> Date: Tue, 15 Sep 2015 22:10:30 +0200 From: Stefan Weil MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Compiling Qemu from Cygwin List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Ladouceur Cc: qemu-devel@nongnu.org Am 15.09.2015 um 20:48 schrieb Mike Ladouceur: > Stefan, >=20 > I got your email from the #qemu channel on OFTC. I was told you may be > able to assist me. I'm trying to compile Qemu from within Cygwin. At fi= rst > I was getting an error about not being able to find zlib.h even though = it > is in fact installed on the "system". I commented out the code that err= ors > out the make command. Once I did that, it does go further, however, I g= et > the following errors: >=20 > CC qga/commands-win32.o >> qga/commands-win32.c: In function =E2=80=98qmp_guest_set_user_password= =E2=80=99: >> qga/commands-win32.c:1254:55: warning: passing argument 2 of >> =E2=80=98g_base64_decode=E2=80=99 from incompatible pointer type >> rawpasswddata =3D (char *)g_base64_decode(password, &rawpasswdlen= ); >> ^ >> In file included from /usr/include/glib-2.0/glib.h:35:0, >> from qga/commands-win32.c:14: >> /usr/include/glib-2.0/glib/gbase64.h:52:9: note: expected =E2=80=98gsi= ze *=E2=80=99 but >> argument is of type =E2=80=98size_t *=E2=80=99 >> guchar *g_base64_decode (const gchar *text, >> ^ >> CC qga/channel-win32.o >> qga/channel-win32.c: In function =E2=80=98ga_channel_create_watch=E2=80= =99: >> qga/channel-win32.c:199:24: warning: cast from pointer to integer of >> different size [-Wpointer-to-int-cast] >> watch->pollfd.fd =3D (gintptr) c->rstate.ov.hEvent; >> ^ >> qga/channel-win32.c: At top level: >> qga/channel-win32.c:205:11: error: conflicting types for =E2=80=98ga_c= hannel_read=E2=80=99 >> GIOStatus ga_channel_read(GAChannel *c, char *buf, size_t size, gsize >> *count) >> ^ >> In file included from qga/channel-win32.c:9:0: >> ./qga/channel.h:30:11: note: previous declaration of =E2=80=98ga_chann= el_read=E2=80=99 was >> here >> GIOStatus ga_channel_read(GAChannel *c, gchar *buf, gsize size, gsize >> *count); >> ^ >> qga/channel-win32.c:269:11: error: conflicting types for >> =E2=80=98ga_channel_write_all=E2=80=99 >> GIOStatus ga_channel_write_all(GAChannel *c, const char *buf, size_t = size) >> ^ >> In file included from qga/channel-win32.c:9:0: >> ./qga/channel.h:31:11: note: previous declaration of >> =E2=80=98ga_channel_write_all=E2=80=99 was here >> GIOStatus ga_channel_write_all(GAChannel *c, const gchar *buf, gsize >> size); >> ^ >> /build/qemu/rules.mak:57: recipe for target 'qga/channel-win32.o' fail= ed >> make: *** [qga/channel-win32.o] Error 1 >> >=20 > I have tried your builds, however, I am only returned to the prompt wit= hout > any output whatsoever. I appreciate any help you can give me. >=20 >=20 > Thanks, >=20 > Mike. Hi Mike, compiling with cygwin is unsupported. I suggest using MinGW-w64 (which also works for cross compilations under Linux). See http://qemu.weilnetz.de/FAQ for your last question. Cheers Stefan