All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Errors compiling QEMU with Mingw
@ 2004-06-19  8:15 Filip Navara
  0 siblings, 0 replies; 19+ messages in thread
From: Filip Navara @ 2004-06-19  8:15 UTC (permalink / raw)
  To: qemu-devel

Vladimir N. Oleynik wrote:
[snip]

> But in fact this very dirty correction.
> May be
> #include <stdio.h>
> is more true.

Right, but that's not easily possible without refactoring a few bits of 
the code. Currently there are duplicate definitions in the QEMU headers 
if <stdio.h> is included and so that must be fixed first.

Regards,
Filip

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [Qemu-devel] Errors compiling QEMU with Mingw
@ 2004-06-18 16:29 Dean Payne
  2004-06-18 16:42 ` Filip Navara
  0 siblings, 1 reply; 19+ messages in thread
From: Dean Payne @ 2004-06-18 16:29 UTC (permalink / raw)
  To: qemu-devel

Hi,

I have tried to compile QEMU for windows from the latest CVS using the
latest MingW and various tools. I basically followed the instructions
outlined for compiling QEMU from
http://www.h7.dion.ne.jp/~qemu-win/PortingTips-en.html. Although I can
compile the source as given there, I have no luck with the latest from CVS.

The first error I got was
------------
In file included from C:/dev/Dev-Cpp/include/windef.h:246,
                 from C:/dev/Dev-Cpp/include/windows.h:48,
                 from d:/sourceforge/qemu/vl.c:60:
C:/dev/Dev-Cpp/include/winnt.h:97: parse error before numeric constant
------------

I chased it down and it appears that the file

qemu\target-ppc\cpu.h

has a define on line 346 :

#define LP     SPR_ENCODE(1022)

which conflicts with the typedef in winnt.h:

typedef TCHAR *LPTCH,*PTSTR,*LPTSTR,*LP,*PTCHAR;

Without knowing too much about the source I changed the #define LP to a
different symbol (hoping that it was not used elsewhere) but encountered
another error:
-------------------------
gcc  -o qemu-system-ppc.exe vl.o osdep.o block.o monitor.o pci.o ppc.o ide.o
ne2000.o pckbd.o vga.o sb16.o dma.o oss.o mc146818rtc.o serial.o i8259.o
i8254.o fdc.o m48t59.o ppc_prep.o ppc_chrp.o cuda.o adb.o sdl.o
ibqemu.a  -lm -lwinmm -lws2_32 -liphlpapi -L/usr/local/lib -lmingw32 -lSDLma
in -lSDL -mwindows
libqemu.a(op_helper.o)(.text+0x12b4): In function `dump_state':
d:/sourceforge/qemu/target-ppc/op_helper.c:471: undefined reference to
`stdout'
make[1]: *** [qemu-system-ppc.exe] Error 1
make[1]: Leaving directory `/d/sourceforge/qemu/ppc-softmmu'
--------------------------

I am not sure whether that is due to me or simply something else. Am I going
about this the right way and can anyone offer some tips?

Cheers

Dean

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

end of thread, other threads:[~2004-06-24 14:20 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200406181841.i5IIfZQa019337@treas.simtreas.ru>
2004-06-19  7:33 ` [Qemu-devel] Errors compiling QEMU with Mingw Vladimir N. Oleynik
2004-06-19  7:37 ` [Qemu-devel] [PATCH] security_20040618 Vladimir N. Oleynik
2004-06-19 15:05   ` Tim
2004-06-20 18:22     ` [Qemu-devel] " Charlie Gordon
2004-06-20 19:26       ` Tim
2004-06-20 20:10         ` [Qemu-devel] " Charlie Gordon
2004-06-20 21:57           ` Tim
2004-06-21  8:50           ` OT: C Q/As, was Re: [Qemu-devel] security_20040618 Christof Petig
2004-06-21 10:21             ` [Qemu-devel] OT: C Q/As, was security_20040618 Charlie Gordon
2004-06-21 10:41               ` Christof Petig
2004-06-21 15:44             ` OT: C Q/As, was Re: [Qemu-devel] security_20040618 Michael Jennings
2004-06-22  9:57               ` [Qemu-devel] Re: completely OT: C Q/As, was security_20040618 Charlie Gordon
2004-06-22 10:49                 ` Sander Nagtegaal
2004-06-22 12:37                   ` [Qemu-devel] " Charlie Gordon
2004-06-22 15:38                 ` [Qemu-devel] Re: completely OT: C Q/As Michael Jennings
2004-06-24 14:21                   ` [Qemu-devel] Re: Re: completely OT: C Q/As : let's feed the troll Charlie Gordon
2004-06-19  8:15 [Qemu-devel] Errors compiling QEMU with Mingw Filip Navara
  -- strict thread matches above, loose matches on Subject: below --
2004-06-18 16:29 Dean Payne
2004-06-18 16:42 ` Filip Navara

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.