From: Stefan Weil <sw@weilnetz.de>
To: Mike Ladouceur <mike.ladouceur@live.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Compiling Qemu from Cygwin
Date: Sat, 19 Sep 2015 08:31:27 +0200 [thread overview]
Message-ID: <55FD013F.8060706@weilnetz.de> (raw)
In-Reply-To: <CAHC8f_enmOfztBNiWU7Cp22wCN_v_styxQDbcpdPig=pXVYNug@mail.gmail.com>
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
next prev parent reply other threads:[~2015-09-19 6:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 18:48 [Qemu-devel] Compiling Qemu from Cygwin Mike Ladouceur
2015-09-15 20:10 ` Stefan Weil
2015-09-15 20:44 ` Eric Blake
2015-09-16 17:51 ` Mike Ladouceur
2015-09-19 2:49 ` Mike Ladouceur
2015-09-19 6:31 ` Stefan Weil [this message]
2015-09-21 1:19 ` Mike Ladouceur
2015-09-21 17:38 ` Stefan Weil
2015-09-22 0:00 ` Mike Ladouceur
2015-09-22 5:21 ` Liviu Ionescu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55FD013F.8060706@weilnetz.de \
--to=sw@weilnetz.de \
--cc=mike.ladouceur@live.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.