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