another patch against head
The following is another patch against the head that lets me build it on Windows, as well as makes the adlib.c file debuggable.
Index: Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136
diff -r1.136 Makefile
17a18,20
Quoted 3 lines
ifdef
CONFIG_WIN32
LIBS= -lmingw32 -mno-cygwin
else
18a22
Quoted 1 line
endif
Index: cocoa.m
===================================================================
RCS file: /sources/qemu/qemu/cocoa.m,v
retrieving revision 1.14
diff -r1.14 cocoa.m
754c754
< [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"cow",@"cloop",@"vmdk",nil]
---
Quoted 1 line
[op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"qcow2",@"cow",@"cloop",@"vmdk",nil]
Index: monitor.c
===================================================================
RCS file: /sources/qemu/qemu/monitor.c,v
retrieving revision 1.87
diff -r1.87 monitor.c
31a32
Quoted 1 line
#include "
qemu-timer.h"
Index: hw/adlib.c
===================================================================
RCS file: /sources/qemu/qemu/hw/adlib.c,v
retrieving revision 1.8
diff -r1.8 adlib.c
25a26
Quoted 1 line
#include "
audio/audio.h"
26a28
Quoted 1 line
#include "
qemu-timer.h"
Hi Hotmail,
Quoted 9 lines · Hotmail
The following is another patch against the head that lets me build it on Windows, as well as makes the
adlib.cfile debuggable.Index:
Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136
diff -r1.136Makefile
17a18,20
Quoted 5 lines
Quoted 3 lines
ifdef
CONFIG_WIN32
LIBS= -lmingw32 -mno-cygwin
else18a22
Quoted 1 line
endif
So you build it in Cygwin, not "on Windows".
Quoted 9 lines
Index: cocoa.m
===================================================================
RCS file: /sources/qemu/qemu/cocoa.m,v
retrieving revision 1.14
diff -r1.14 cocoa.m
754c754
< [op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"cow",@"cloop",@"vmdk",nil]
---Quoted 1 line
[op beginSheetForDirectory:nil file:nil types:[NSArray arrayWithObjects:@"img",@"iso",@"dmg",@"qcow",@"qcow2",@"cow",@"cloop",@"vmdk",nil]
How does this help compiling on Windows?
Quoted 7 lines
Index:
monitor.c
===================================================================
RCS file: /sources/qemu/qemu/monitor.c,v
retrieving revision 1.87
diff -r1.87monitor.c
31a32Quoted 1 line
#include "
qemu-timer.h"
Quoted 9 lines
Index:
hw/adlib.c
===================================================================
RCS file: /sources/qemu/qemu/hw/adlib.c,v
retrieving revision 1.8
diff -r1.8adlib.c
25a26Quoted 1 line
#include "
audio/audio.h"26a28
Quoted 1 line
#include "
qemu-timer.h"
Why are these needed? It appears that all other platforms build QEmu just fine without these #includes.
But then, the answer to that riddle could be in the context. Since you did not use the unified diff format, I have no chance to know.
Ciao,
Dscho
Quoted 11 lines · Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +0000, a écrit :
Quoted 9 lines · Hotmail
The following is another patch against the head that lets me build it on Windows, as well as makes the
adlib.cfile debuggable.Index:
Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136
diff -r1.136Makefile
17a18,20
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
ifdef
CONFIG_WIN32
LIBS= -lmingw32 -mno-cygwin
else18a22
Quoted 1 line
endif
So you build it in Cygwin, not "on Windows".
Not exactly. -mno-cygwin means that he used the cygwin-provided gcc, but provide a non-cygwin binary that can be shipped without extra dlls.
Samuel
Hi,
Quoted 15 lines · Samuel Thibault
Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +0000, a ?crit :
Quoted 14 lines · Hotmail
Quoted 13 lines
The following is another patch against the head that lets me build it on Windows, as well as makes the
adlib.cfile debuggable.Index:
Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136
diff -r1.136Makefile
17a18,20Quoted 3 lines
ifdef
CONFIG_WIN32
LIBS= -lmingw32 -mno-cygwin
else
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
18a22
Quoted 1 line
endif
So you build it in Cygwin, not "on Windows".
Not exactly. -mno-cygwin means that he used the cygwin-provided gcc, but provide a non-cygwin binary that can be shipped without extra dlls.
And how exactly does that differ from what I said? It is building in Cygwin. Maybe I should have added for completeness' sake "as opposed to MinGW".
Thanks,
Dscho
Quoted 20 lines · Johannes Schindelin, le Wed 28 Nov 2007 14:01:21 +0000, a écrit :
Quoted 18 lines · Samuel Thibault
Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +0000, a ?crit :
Quoted 17 lines · Hotmail
Quoted 15 lines
The following is another patch against the head that lets me build it on Windows, as well as makes the
adlib.cfile debuggable.Index:
Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136
diff -r1.136Makefile
17a18,20Quoted 3 lines
ifdef
CONFIG_WIN32
LIBS= -lmingw32 -mno-cygwin
else18a22
Quoted 1 line
endif
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
So you build it in Cygwin, not "on Windows".
Not exactly. -mno-cygwin means that he used the cygwin-provided gcc, but provide a non-cygwin binary that can be shipped without extra dlls.
And how exactly does that differ from what I said? It is building in Cygwin.
With the MinGW headers. That makes a big difference. Compiling in cygwin with -mno-cygwin is almost the same as compiling with MinGW tools (the difference mostly lies in Makefile and shell script subtleties)
Samuel
Hi,
Quoted 26 lines · Samuel Thibault
Johannes Schindelin, le Wed 28 Nov 2007 14:01:21 +0000, a ?crit :
Quoted 25 lines · Samuel Thibault
Quoted 23 lines
Johannes Schindelin, le Wed 28 Nov 2007 12:49:34 +0000, a ?crit :
Quoted 11 lines · Hotmail
Quoted 10 lines
The following is another patch against the head that lets me build it on Windows, as well as makes the
adlib.cfile debuggable.Index:
Makefile
===================================================================
RCS file: /sources/qemu/qemu/Makefile,v
retrieving revision 1.136
diff -r1.136Makefile
17a18,20Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
ifdef
CONFIG_WIN32
LIBS= -lmingw32 -mno-cygwin
else18a22
Quoted 1 line
endif
So you build it in Cygwin, not "on Windows".
Not exactly. -mno-cygwin means that he used the cygwin-provided gcc, but provide a non-cygwin binary that can be shipped without extra dlls.
Quoted 7 lines
Quoted 2 lines
And how exactly does that differ from what I said? It is building in Cygwin.
With the MinGW headers. That makes a big difference. Compiling in cygwin with -mno-cygwin is almost the same as compiling with MinGW tools (the difference mostly lies in
Makefileand shell script subtleties)
Okay, I failed again to make myself understood.
If you say "it fixes building on Windows", while many people have no problem whatsoever building it with MinGW, and other people who might want to build it with Visual Studio or Borland or whatever will still have a ton of problems, is ever so _slightly_ misleading.
Okay?
Thanks,
Dscho
----- Original Message -----
From: "Johannes Schindelin" <[email protected]>
To: "Hotmail" <[email protected]>
Cc: "qemu Devel" <[email protected]>
Sent: Wednesday, November 28, 2007 5:49 AM
Subject: Re: [Qemu-devel] another patch against head
Quoted 2 lines
Hi Hotmail,
Hello. Please call me C.W.
Quoted 3 lines
...
Quoted 1 line
(patch to cocoa.m)
How does this help compiling on Windows?
It doesn't. It's just a little patch should someone decide to build it on cocoa and are confused
Quoted 4 lines
Quoted 2 lines
(patch against
monitor.candhw/adlib.c)Why are these needed? It appears that all other platforms build QEmu just fine without these #includes.
I also seem to have this problem on my Linux box. It could be my cvs files has become disjoined from the server, or both compilers somehow don't include the needed headers elsewhere in the code.
Quoted 2 lines
But then, the answer to that riddle could be in the context. Since you did not use the unified diff format, I have no chance to know.
How would I make a unified diff from a command line?
Quoted 4 lines · Hotmail
Quoted 2 lines
But then, the answer to that riddle could be in the context. Since you did not use the unified diff format, I have no chance to know.
How would I make a unified diff from a command line?
cvs diff -u
Hth,
Dscho