Sunday, November 17, 2013

C++ Developers guide to upgrading to OSX 10.9 Mavericks

So Apple's shiny new OS is out and there are a few adjustments every C++ developer needs to know. (Note: This is for people using Eclipse or a similar IDE, not XCode).

First you'll need to go to the App Store and install the latest version of XCode.

If you use Eclipse (or probably any IDE) I recommend checking for updates. In Eclipse look for the option "Check for Updates" under the Help menu.

Next fire up Terminal, we need to install some stuff.

$ xcode-select --install

This installs the command line tools that Eclipse needs. You'll be prompted for your admin password.

Next if you like to use and install open source software you'll need to reinstall a few things. You probably already have a directory you download and install packages from but if not create something like ~/packages and work from there. (Thanks to for the following instructions).

$ curl -O
$ tar -xf autoconf-2.65.tar.gz
$ cd autoconf-2.65
$ ./configure
$ make
$ sudo make

$ install curl -O
$ tar -xf automake-1.11.tar.gz
$ cd automake-1.11
$ ./configure
$ make
$ sudo make install

$ curl -OL
$ tar -xf libtool-2.4.2.tar.gz
$ cd libtool-2.4.2
$ ./configure
$ make
$ sudo make install

Finally you'll probably need to rebuild and relink any projects you have in Eclipse. Remember to do a clean first so everything gets rebuilt.

Now you should be good to go.