realbasic-plugins
[Top] [All Lists]

Win32 cross compilation on OSX

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Win32 cross compilation on OSX
From: Marco Bambini <marco at sqlabs dot net>
Date: Wed, 25 May 2005 18:46:32 +0200
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <BEB9CE3A dot CBFE%vanhoek at mac dot com>
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>

<Prev in Thread] Current Thread [Next in Thread>