Created
September 13, 2012 14:42
-
-
Save ihabunek/3714740 to your computer and use it in GitHub Desktop.
Cross-compiling subsurface for Windows on Fedora 17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cross-compiling subsurface for windows, starting with a clean install | |
# of Fedora 17. | |
# | |
# Before starting create a user and add him to /etc/sudoers. | |
# | |
# Basic tools | |
sudo yum install vim git tar | |
# Tools required to run autoreconf & make | |
sudo yum install autoconf automake libtool make | |
# Mingw32 and required libs | |
sudo yum install mingw32-gcc mingw32-pkg-config mingw32-libxml2 \ | |
mingw32-libxslt mingw32-glib2 mingw32-cairo mingw32-gtk2 \ | |
mingw32-libtiff mingw32-pthreads mingw32-nsis | |
# Compile libusb (used by libdivecomputer) | |
# Find latest version at: http://www.libusb.org/ | |
cd | |
wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2 | |
tar xjvf libusb-1.0.9.tar.bz2 | |
cd libusb-1.0.9 | |
mingw32-configure | |
mingw32-make | |
sudo mingw32-make install | |
# Compile libdivecomputer | |
cd | |
git clone git://libdivecomputer.git.sourceforge.net/gitroot/libdivecomputer/libdivecomputer | |
cd libdivecomputer | |
autoreconf --install | |
mingw32-configure | |
mingw32-make | |
sudo mingw32-make install | |
# Compile subsurface | |
cd | |
git clone git://subsurface.hohndel.org/subsurface.git | |
cd subsurface | |
./packaging/windows/mingw-make.sh | |
# Create installer | |
cd ~/subsurface/packaging/windows | |
ln -s /usr/i686-w64-mingw32/sys-root/mingw/bin dll | |
makensis subsurface.nsi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment