qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Compiling Qemu from Cygwin


From: Stefan Weil
Subject: Re: [Qemu-devel] Compiling Qemu from Cygwin
Date: Sat, 19 Sep 2015 08:31:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

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 it
> appears to be similar to the error from Cygwin. Configure seems to run
> fine. Make fails. I'm officially lost.
> 
> ./configure --cross-prefix=x86_64-w64-mingw32
> (...)
>   CC    qga/commands-win32.o
> qga/commands-win32.c: In function ‘qmp_guest_set_user_password’:
> qga/commands-win32.c:1254:5: warning: passing argument 2 of
> ‘g_base64_decode’ from incompatible pointer type [enabled by default]
>      rawpasswddata = (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 ‘gsize *’ but
> argument is of type ‘size_t *’
>  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-20101229_win64.zip.

Regards
Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]