Thursday, September 22, 2011

Xcode libraries

This post is meant to extend the last post, but I felt like making a new one for it. The libraries installed on OSX seem to be places in "/usr/local/include/" (not entirely sure yet, but it seems to be the case). There are a bunch of places where they could be, such as "/usr/include/", "/opt/local/include/" and in the Xcode program folder. There a bunch more, but so far this folder I have found captures all the libraries in one place. G++ seems to know where this library is, so I don't have to use any special compile flags, but on the other hand, Xcode has no clue where this folder is. So to include it (the right way this time). Select the project in the project navigator. Select the project again in the view that comes up (on the left hand side). Use filter "Build Settings", "all" and "levels". Go down to "Search Paths" and input "/usr/local/include/" into "Header Search Paths". And that should do it.

And another note. I put GLM in there. It's kind of convenient that way.

No comments: