Hi Developers,
I have found a relative easy way to cross compile Win32 applications
and DLL on OSX using gcc and MiniGW.
You only need the Terminal app and a fast internet connection.
I have modified a shell script written by Sam Lantinga found at
http://www.libsdl.org/extras/win32/cross/ and I have used some
suggestions found in a newsgroup.
The script is build-cross.sh and I made the following changes, some
of which are essential for the build to succeed on OS X, and some are
optional:
PREFIX=/opt/mingw # optional
WGET="curl -O" # wget isn't in standard OS X install any more
plus some modifications to the current gcc/bison versions.
Before running the script I added the binary install directory to $PATH:
$ export PATH=$PATH:/opt/mingw/bin
Then
$ sudo sh build_cross.sh
After some minutes the script left me with a working MinGW
installation in /opt/mingw !
I have tested the process with MacOS X 10.4.1 but it should works
also with 10.3.x
You can find the modified script at:
http://www.sqlabs.net/download/build-cross.sh
Hope this can help.
Best regards,
Marco Bambini
SQLabs.net
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|