All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] qemu on Cygwin
@ 2007-01-31 19:35 Alexander Voropay
  2007-01-31 22:33 ` Stefan Weil
  2007-02-01  8:57 ` Johannes Schindelin
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Voropay @ 2007-01-31 19:35 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

Hi!

 Did anyone try the latest CVS qemu on Cygwin ?

 The build environment adds spacial "-mno-cygwin" option
which among other effects removes defaul *.h path (/usr/include/)
from the search list.

 For example:

-- a.c --
#include <zlib.h>
main () {}
----

$ gcc -c a.c    --- OK

$ gcc -mno-cygwin -c a.c
a.c:1:18: zlib.h: No such file or directory



--
-=AV=-

[-- Attachment #2: Type: text/html, Size: 1666 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu on Cygwin
  2007-01-31 19:35 [Qemu-devel] qemu on Cygwin Alexander Voropay
@ 2007-01-31 22:33 ` Stefan Weil
  2007-02-01  8:57 ` Johannes Schindelin
  1 sibling, 0 replies; 5+ messages in thread
From: Stefan Weil @ 2007-01-31 22:33 UTC (permalink / raw)
  To: qemu-devel


> Hi!
>  
>  Did anyone try the latest CVS qemu on Cygwin ?
>  
>  The build environment adds spacial "-mno-cygwin" option
> which among other effects removes defaul *.h path (/usr/include/)
> from the search list.

Default path with -mno-cygwin is /usr/include/mingw,
so zlib.h must be installed there...

You can see the search list with "gcc -mno-cygwin -E -v -".

Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu on Cygwin
  2007-01-31 19:35 [Qemu-devel] qemu on Cygwin Alexander Voropay
  2007-01-31 22:33 ` Stefan Weil
@ 2007-02-01  8:57 ` Johannes Schindelin
  2007-02-03 17:16   ` Alexander Voropay
  1 sibling, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2007-02-01  8:57 UTC (permalink / raw)
  To: Alexander Voropay; +Cc: qemu-devel

Hi,

On Wed, 31 Jan 2007, Alexander Voropay wrote:

>  Did anyone try the latest CVS qemu on Cygwin ?
> 
>  The build environment adds spacial "-mno-cygwin" option
> which among other effects removes defaul *.h path (/usr/include/)
> >from the search list.

AFAICT this is due to SDL. I did not succeed in compiling any SDL related 
stuff in cygwin, but then, I did not really try, since the MinGW 
compilation is easy enough. (Also, the executables are slightly faster, 
since they don't have to emulate a POSIX layer on top of the Windows 
crAPI.)

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu on Cygwin
  2007-02-01  8:57 ` Johannes Schindelin
@ 2007-02-03 17:16   ` Alexander Voropay
  2007-02-04 10:27     ` Kazu
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Voropay @ 2007-02-03 17:16 UTC (permalink / raw)
  To: qemu-devel

"Johannes Schindelin" <Johannes.Schindelin@gmx.de> wrote:

>>  Did anyone try the latest CVS qemu on Cygwin ?

> AFAICT this is due to SDL. I did not succeed in compiling any SDL related 
> stuff in cygwin, but then, I did not really try, since the MinGW 
> compilation is easy enough.

 I've successfully compiled SDL 1.2.11 on the fresh-installed Cygwin 1.5.24.
The following test SDL application works:
http://www.cse.nd.edu/courses/cse20211/www/code/sdl.html

 The SDL/test contains a bunch of SDL testing applications.
Most of them works too, even sound- and OpenGL related.

--
-=AV=-

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] qemu on Cygwin
  2007-02-03 17:16   ` Alexander Voropay
@ 2007-02-04 10:27     ` Kazu
  0 siblings, 0 replies; 5+ messages in thread
From: Kazu @ 2007-02-04 10:27 UTC (permalink / raw)
  To: Alexander Voropay, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

Hi,

Sent: Sunday, February 04, 2007 2:16 AM Alexander Voropay wrote:

> "Johannes Schindelin" <Johannes.Schindelin@gmx.de> wrote:
>
>>>  Did anyone try the latest CVS qemu on Cygwin ?
>
>> AFAICT this is due to SDL. I did not succeed in compiling any SDL related
>> stuff in cygwin, but then, I did not really try, since the MinGW
>> compilation is easy enough.
>
> I've successfully compiled SDL 1.2.11 on the fresh-installed Cygwin
1.5.24.
> The following test SDL application works:
> http://www.cse.nd.edu/courses/cse20211/www/code/sdl.html
>
> The SDL/test contains a bunch of SDL testing applications.
> Most of them works too, even sound- and OpenGL related.
>

sdl-config adds -mno-cygwin option so that SDL on Cygwin uses MinGW
compiler.
An attached patch makes compile on Cygwin. But I have to downgrade
mingw-runtime from 3.11 to 3.10.

Regards,
Kazu

[-- Attachment #2: qemu-20070204-cygwin.patch --]
[-- Type: application/octet-stream, Size: 525 bytes --]

Index: Makefile.target
===================================================================
RCS file: /sources/qemu/qemu/Makefile.target,v
retrieving revision 1.144
diff -u -r1.144 Makefile.target
--- Makefile.target	2 Feb 2007 03:13:18 -0000	1.144
+++ Makefile.target	4 Feb 2007 10:19:03 -0000
@@ -177,6 +177,7 @@
 BASE_LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
 endif
 
+BASE_CFLAGS+=$(OS_CFLAGS)
 OP_CFLAGS+=$(OS_CFLAGS)
 
 #########################################################

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-04 10:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 19:35 [Qemu-devel] qemu on Cygwin Alexander Voropay
2007-01-31 22:33 ` Stefan Weil
2007-02-01  8:57 ` Johannes Schindelin
2007-02-03 17:16   ` Alexander Voropay
2007-02-04 10:27     ` Kazu

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.