Since moving house I’ve not had much time to spend preparing the attic for my model railway. At the weekend I finally finished the flooring necessary to walk around and set up the baseboard (largely thanks to a great mini-saw from Mac Allister).
In preparation for an enjoyable winter getting my trains up and running I decided to gather all of the boxes (moved or purchased) into one corner of the attic. It looks like Christmas has come early!
As you can see from some of the boxes I’m trying to move to DCC – I’ve grabbed a few decoders for the analog trains too so I should have a good fleet of digital controlled trains before the sun returns next year.
Well it’s railway time and I’m finding that my plans are far more elaborate than ever before so I need a way of planning the layout so I can test various turnouts and track combinations before I have to start cutting track etc. No bother when there is great software out there to help you and XTrkCad is just such a great (and open source) piece of software – but why would I ever need to build it from scratch?
My problems seem to be related to 1) Apple OSX Lion changed a lot of the underlying libraries and it breaks XTrkCad and 2) I want to tweak the software and generally fix it up on Mac. So, if you are interested in this too please follow along!
- If you do not already have it install darwin ports to help manage various unix packages on Mac – head to http://www.macports.org/install.php and follow their instructions
- Ensure that you have X11 installed on your Mac (comes with the install DVD but may not be installed by default)
- Now we want to compile…
sudo make install
You can now run the program by executing
/usr/local/bin/xtrkcad on the command line. If you would like to create a more familiar looking .app bundle then you should:
sudo cp -r ./_CPack_Packages/Darwin/Bundle/xtrkcad-setup-4.2.0beta1-i386/XTrackCAD.app /Applications/
Now you have the latest XTrkCad on your machine you can have a little fun. If this does not work out give me a shout and I will update my docs. I hope to get the app build updated on the website soon so this is not necessary by all users of XTrkCad in OSX Lion.