Skip to content
uglyDwarf edited this page Aug 13, 2015 · 4 revisions

Building and installing on Mac

Please note, that compiling Linuxtrack for Mac is usually not necessary - you can grab the .dmg archive in the Downloads section - it should work on Intel Macs in MacOS X 10.6 and up...

I'm building Linuxtrack on Mac OS X 10.6.8 (Snow Leopard); this is due to the fact, that historically the first client application was X-Plane simulator, which in its current version supports 10.6 too.

This page is more a description of my build setup, but it should give you enough information to build it yourself should you feel adventurous.

First of all, there are some prerequisites to download/install...

Xcode

Qt 4.8.4 https://download.qt.io/archive/qt/4.8/4.8.4/qt-mac-opensource-4.8.4.dmg

Cmake http://www.cmake.org/download/

XPSDK201.zip http://www.xsquawkbox.net/xpsdk/mediawiki/Download

nsis-2.46.zip http://sourceforge.net/projects/nsis/files/NSIS%202/2.46/

nsis-2.46-src.tar.bz2 http://sourceforge.net/projects/nsis/files/NSIS%202/2.46/

scons-2.3.0.tar.gz http://sourceforge.net/projects/scons/files/scons/2.3.0/

libusbx-1.0.16.tar.bz2 http://sourceforge.net/projects/libusb/files/libusb-1.0/

liblo-0.28.tar.gz http://sourceforge.net/projects/liblo/files/liblo/0.28/

opencv-2.4.6.1.tar.gz http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/

wine-1.4.1.tar.bz2 http://ftp.winehq.org/pub/wine/source/1.4/wine-1.4.1.tar.bz2

mxml-2.7.tar.gz https://www.msweet.org/files/project3/mxml-2.7.tar.gz

cabextract-1.4.tar.gz http://www.cabextract.org.uk/cabextract-1.4.tar.gz

First of all, you need to install Xcode - older versions had it on the Installation DVD, newer ones get it through the app store. Then install Qt and the CMake. The rest of the downloads should be copied to some directory, and then the Linuxtrack sources should be downloaded (e.g. git 'clone git@github.com:uglyDwarf/linuxtrack.git' ). The last step is to unzip the X-Plane SDK.

Now enter the Linuxtrack directory and there is a mac_build script, that handles the compilation of all prerequisites, Linuxtrack itself and the packaging too - just run it and you should end up with Linuxtrack .dmg package. The script should be relative easy to understand/modify, should you need to tweak something.

Prerequisities are compiled only first time, then they are reused, cutting down the time needed to compile Linuxtrack by a considerable amount.

Concluding notes

Qt 4.X is used because 5.X doesn't support Mac OS X 10.6.

Most of the prerequisities are not in their newest versions anymore; most of the time you should be OK choosing the newest version, but you might encounter some problems down the road - if you do, just file an issue and I'll do something about it.

Wine 1.4.1 is used because it doesn't contain the native display on Mac OS X (only X11). That way, the installers unpacked by wine do not bother user, but silently do their job, improving user convenience. Also the build itself is much easier (no need for 1001 other libraries).

Build attempts on Mac OS X 10.8 weren't successful due to the malfunctioning wine. I didn't investigate much deeper yet, but one of these days I will.