PDA

View Full Version : Cross compilation from OS X to Windows



NicholasSmith
14th January 2009, 17:54
Hello everyone (first post, and I hope I don't come off as too much off a newbie).

Currently I'm developing a system that I want to get up and running for OS X and Windows but I'm having issues doing the compilation for Windows from OS X.

The stage I'm at is I've got MinGW32 installed, which works as I've made some test .exe's which are all fine, but I'm either being a bit slow or I've missed something obvious as I just cannot get Qt files to compile at all, I just get:


ld: unknown option: -enable-stdcall-fixup
collect2: ld returned 1 exit status
make[1]: *** [debug/tut2.exe] Error 1
make: *** [debug] Error 2


Any ideas? Sorry if this has been covered before, I had a good search on the forums and couldn't spot it!

Brandybuck
14th January 2009, 18:09
Are you using qmake? That will create the appropriate makefiles for you.

NicholasSmith
14th January 2009, 23:39
Are you using qmake? That will create the appropriate makefiles for you.

Yeah I'm using qmake, I originally had QMAKESPEC set to macx-g++ and I've tried various different things such as setting QMAKESPEC to win32-g++ and nothing seems to be generating correct makefiles.

NicholasSmith
15th January 2009, 17:43
Actually I've worked out where I was messing up thanks to:

http://www.jasonandshawnda.com/wordpress/?cat=6
http://silmor.de/29

Whilst they're focussed on Linux I think I should be able to modify the process they're using for OS X. Was hoping there'd be a slightly easier method but I suppose I'll skip the lazy developer part and do it properly.