XCode 4.6, cmake, and MPTK 0.7

I have, for the past 6 hours, been trying to figure out why I could no longer build an XCode project of MPTK, like I could in March. Now I know why. Apparently, XCode and cmake begin playing together differently after XCode 4.3 or so. I upgraded my XCode installation after my visit to Rennes in March, and this made some non-trivial changes.

Now, before running “cmake -G Xcode” in a terminal, one must run, “sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer”. At least, on my computer. (Thanks to this post.)
Now, before running the Xcode project, we must turn off the matlab support. So, run “ccmake .”, turn off the MATLAB flag, and generate the output. Now, MPTK and its utils can be compiled in Xcode.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s