mingw-cross-env-list
[Top][All Lists]
Advanced

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

Re: [Mingw-cross-env-list] Newbie, mxe & compiling QEMU 1.2 for Windows


From: Bart van Andel
Subject: Re: [Mingw-cross-env-list] Newbie, mxe & compiling QEMU 1.2 for Windows
Date: Thu, 11 Oct 2012 01:00:30 +0200

Hi,

Qemu already has cross compilation support built-in. Simply use:

./configure --cross-prefix=i686-pc-mingw32-
make

I had to edit [mxe]/usr/i686-pc-mingw32/include/curses.h because it redefines the bool type. I've used the following lines. Haven't tested the resulting binaries though so this type may not be what Qemu actually expects:

#ifndef bool
typedef unsigned char bool;    /* PDCurses boolean type */
#endif

Good luck,
Bart


On Wed, Oct 10, 2012 at 7:55 PM, Mike Levin <address@hidden> wrote:
Hello MXE cross compilers. Total newbie here to cross-compiling.
Tackling QEMU 1.2.0 as my first project. I'm on Ubuntu 12.10.

mxe is installed in /opt/mxe and installed all the optional libraries
with a "make".

I set my path:
export PATH=/opt/mxe/usr/bin:$PATH

I added this to the top of QEMU's MakeFile:
CC=$(CROSS)gcc
LD=$(CROSS)ld
AR=$(CROSS)ar
PKG_CONFIG=$(CROSS)pkg-config

This is my configure command:
./configure --target-list=i386-softmmu --enable-curses

And this is my make command:
make CROSS=i686-pc-mingw32-

It does not invoke the cross-compiler. Instead, it builds the binaries
that work properly on Linux. Am I missing something?

Per some googling, I also tried making this link:
ln -s /opt/mxe/usr/i686-pc-mingw32/ mingw-cross-env

Still the same results of the default compiler being used. Any advice
for a newb? What else to check?

Mike



reply via email to

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