-
Notifications
You must be signed in to change notification settings - Fork 5
Cross Compiling FXRuby for MinGW on Linux
larskanis edited this page Jan 31, 2012
·
5 revisions
This page describes how to set up a cross-compilation environment on Ubuntu Linux 11.10, for building FOX and FXRuby that target MinGW.
Start by installing the cross-compilation tools:
sudo apt-get install gcc-mingw-w64
gem install rake-compiler
Use ruby-1.8.7 for the following commands. Download and cross compile ruby 1.8 and 1.9 for win32 with:
rake-compiler cross-ruby VERSION=1.8.7-p357
rake-compiler cross-ruby VERSION=1.9.3-p0
Clone fxruby sources:
git clone [email protected]:larskanis/fxruby.git
cd fxruby
git checkout 1.6
Start Rake-tasks for download and cross compilation of zlib, libpng, libtiff, libjpeg, libfox and libfxscintillafor:
rake cross native gem
This will take some time to proceed. In the end, there should be a fxruby-VERSION-x86-mingw32.gem in the pkg
directory.