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 https://wiki.documentfoundation.org/Development/BuildingOnMac for the following instructions).


$ curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
$ tar -xf autoconf-2.65.tar.gz
$ cd autoconf-2.65
$ ./configure
$ make
$ sudo make

$ install curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
$ tar -xf automake-1.11.tar.gz
$ cd automake-1.11
$ ./configure
$ make
$ sudo make install

$ curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
$ 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.

2 comments:

  1. Software engineers are the most important part of our society, they are the respectable persons of the society for papertrolling, they teach us how software should be constructed is a vital part of programming and producing a product, we can be good software professionals without knowing and understanding it.

    ReplyDelete
  2. Great article. I totlly liked it. Your entire website is great. Tik Tok

    ReplyDelete

Note: Only a member of this blog may post a comment.