One of the great things about code developed for Linux / Unix is how portable it can be and how it should compile on so many different systems. Autotools is, however, a pain and experiences in the past have proved less fruitless than the ideals foretell.
With some help from the Enlightenment developer crowd I set to compile the EFL on OS X Yosemite. Here is my rundown on what you need to do if you’re keen to try the same (note that this uses HomeBrew – I tried with MacPorts with little luck, if you are using ports please uninstall it first):
Then execute the following commands from your terminal:
brew install autoconf automake libtool gettext pkg-config check libjpeg luajit fribidi giflib libtiff glib xz dbus cmake bullet gnu-sed
brew link gettext --force
git clone firstname.lastname@example.org:core/efl.git
export LDFLAGS="-L/usr/X11/lib -L/usr/local/lib"
export CFLAGS="-I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/local/include"
./autogen.sh --without-x --with-x11=none --enable-cocoa --disable-pulseaudio --disable-audio --disable-gstreamer1 --disable-gstreamer --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-aba
sudo make install
git clone email@example.com:core/elementary.git
sudo make install
That should get you to a place where the EFL and Elementary are all installed into /usr/local. Note that at this stage there are many known issues – one of the larger being that mouse input is not recognised…
Please file patches to us at phabricator.
The open source track planning software XTrackCAD is a fantastic tool in anyone playing with model railways but without a stable release in 5 years it’s lagged a little behind Apple’s operating system updates. Installing on OS X 10.10 does not work out of the box but if you follow these steps you’ll have a running application in no time.
- Download and install the latest XQuartz
You can get it from http://xquartz.macosforge.org.
- Download and install XTrackCAD as with earlier OS X installations
The files are hosted on the project sourceforge page.
- Make sure you have allowed access to applications from any developers
There are various instructions but try this walk through.
- Replace some out of date libraries in the XTrackCAD bundle
Open a terminal and execute the following commands:
cp libxml2.2.dylib /Applications/XTrackCAD.app/Contents/Resources/lib/
cp libiconv.2.dylib /Applications/XTrackCAD.app/Contents/Resources/lib/
cp libz.1.dylib /Applications/XTrackCAD.app/Contents/Resources/lib/
There you go – everything should be working correctly after this. Thanks for the hints from tynewydd962 in the XTrackCAD forum.