If anyone had issues with building OCE on Mountain Lion here is what worked
I spent a little time on this and I think I have it. Here is what I did
step by step:
Installing Xcode (with command line tools) = Apple developer site // If
Xcode doesn't install gcc, than you can still download it from the
developer site as Command Line Tools for Xcode.
Installing Cmake (with command line tools) = Google // You can download
it from the official site with a .dmg/.pkg file extension. Easy install.
X11 under Mountain Lion "changed" to Xquartz. Probably it is not
installed by default, but it is easy to check it. Just go to the folder
"Application" and start the X11 app. If X11/Xquartz is not installed than
it will install automatically!
Installing FTGL = MacPorts = Google // Download MacPorts from their
official site, install it with the installer, than write this to the
sudo port install ftgl
- Download OCE and extract it (.OCE-0.9.0.tar.gz file) =
I. Open Terminal.
II. Run this command
// This will set the proper PATH.
ln -s /opt/X11/include/X11 /usr/local/include/X11
III. Than from the Terminal go to the directory where you extracted the OCE
file (the original extracted file name should be: tpaviot-oce-6c9a06a).
IV. Than write these commands:
// You make a build directory to the extracted OCE folder.
V. After this you give out the cmake command:
cmake -DOCE_INSTALL_PREFIX:PATH=$HOME/OCE \
VI. And at the end the make commands:
If you did everything exactly like this, than it should work! I posted this
little "tutorial" here too: