qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
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: Tue, 15 Sep 2015 22:10:30 +0200	[thread overview]
Message-ID: <55F87B36.6040907@weilnetz.de> (raw)
In-Reply-To: <CAHC8f_fmqVxb+agrxrhA3kYCJZ9X=Db6MaEfXQMUkhhTMo24RA@mail.gmail.com>

Am 15.09.2015 um 20:48 schrieb Mike Ladouceur:
> Stefan,
> 
>  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 first
> 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 errors
> out the make command. Once I did that, it does go further, however, I get
> the following errors:
> 
>   CC    qga/commands-win32.o
>> qga/commands-win32.c: In function ‘qmp_guest_set_user_password’:
>> qga/commands-win32.c:1254:55: warning: passing argument 2 of
>> ‘g_base64_decode’ from incompatible pointer type
>>      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,
>>          ^
>>   CC    qga/channel-win32.o
>> qga/channel-win32.c: In function ‘ga_channel_create_watch’:
>> qga/channel-win32.c:199:24: warning: cast from pointer to integer of
>> different size [-Wpointer-to-int-cast]
>>      watch->pollfd.fd = (gintptr) c->rstate.ov.hEvent;
>>                         ^
>> qga/channel-win32.c: At top level:
>> qga/channel-win32.c:205:11: error: conflicting types for ‘ga_channel_read’
>>  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 ‘ga_channel_read’ was
>> here
>>  GIOStatus ga_channel_read(GAChannel *c, gchar *buf, gsize size, gsize
>> *count);
>>            ^
>> qga/channel-win32.c:269:11: error: conflicting types for
>> ‘ga_channel_write_all’
>>  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
>> ‘ga_channel_write_all’ 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' failed
>> make: *** [qga/channel-win32.o] Error 1
>>
> 
> I have tried your builds, however, I am only returned to the prompt without
> any output whatsoever. I appreciate any help you can give me.
> 
> 
> Thanks,
> 
> 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

  reply	other threads:[~2015-09-15 20:10 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 [this message]
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
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=55F87B36.6040907@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).