From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdBgM-00087z-PH for qemu-devel@nongnu.org; Sat, 19 Sep 2015 02:31:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdBgJ-0001Bb-Jl for qemu-devel@nongnu.org; Sat, 19 Sep 2015 02:31:34 -0400 Received: from [2a03:4000:1::4e2f:c7ac:d] (port=59686 helo=v220110690675601.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdBgJ-0001BX-DY for qemu-devel@nongnu.org; Sat, 19 Sep 2015 02:31:31 -0400 Message-ID: <55FD013F.8060706@weilnetz.de> Date: Sat, 19 Sep 2015 08:31:27 +0200 From: Stefan Weil MIME-Version: 1.0 References: <55F87B36.6040907@weilnetz.de> <55F88314.8030604@redhat.com> 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 19.09.2015 um 04:49 schrieb Mike Ladouceur: > I tried from Ubuntu in Virtualbox and this is the error I now get and i= t > appears to be similar to the error from Cygwin. Configure seems to run > fine. Make fails. I'm officially lost. >=20 > ./configure --cross-prefix=3Dx86_64-w64-mingw32 > (...) > 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:5: warning: passing argument 2 of > =E2=80=98g_base64_decode=E2=80=99 from incompatible pointer type [enabl= ed by default] > 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=98gsiz= e *=E2=80=99 but > argument is of type =E2=80=98size_t *=E2=80=99 > guchar *g_base64_decode (const gchar *text, > ^ Your compiler gets the wrong header files for glib-2.0. configure uses pkg-config to get the correct compiler options. For your cross compilations, it calls x86_64-w64-mingw32-pkg-config. Here is an example from my build machine: $ x86_64-w64-mingw32-pkg-config --cflags glib-2.0 -mms-bitfields -I/usr/x86_64-w64-mingw32/include/glib-2.0 -I/usr/x86_64-w64-mingw32/lib/glib-2.0/include So the header files are in /usr/x86_64-w64-mingw32/include/glib-2.0, not in /usr/include/glib-2.0 (those are the header files for native compilation). Did you install glib-2.0 for cross compilation? I use the bundle from ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101= 229_win64.zip. Regards Stefan