qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Errors compiling QEMU with Mingw


From: Dean Payne
Subject: [Qemu-devel] Errors compiling QEMU with Mingw
Date: Sat, 19 Jun 2004 00:29:42 +0800

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]