Any thorough guide onto how to build 1.9 or 1.8.1 on xcode 5

Problems building or running the engine, queries about how to use features etc.
Post Reply
jokoon
Goblin
Posts: 203
Joined: Sun Aug 23, 2009 8:30 am
x 3

Any thorough guide onto how to build 1.9 or 1.8.1 on xcode 5

Post by jokoon »

I failed several times to build ogre on my 2009, 13", 2GB macbook pro.

Which dependencies should I use for 1.9 or 1.8.1 ? I've been told to not trust the official download, and only get anything from the repo.

Any thorough guide about building ogre on mac? it seems to change every 6 months.
jokoon
Goblin
Posts: 203
Joined: Sun Aug 23, 2009 8:30 am
x 3

Re: Any thorough guide onto how to build 1.9 or 1.8.1 on xco

Post by jokoon »

jokoon
Goblin
Posts: 203
Joined: Sun Aug 23, 2009 8:30 am
x 3

Re: Any thorough guide onto how to build 1.9 or 1.8.1 on xco

Post by jokoon »

Okay so I manage to compile 1.9 on mavericks, here is what I did.

Downloaded the 1.9 zip from the bitbucket repo.

Downloaded the OgreDependencies_OSX_libc++_20130610.zip from http://sourceforge.net/projects/ogre/fi ... s-mac/1.9/

Installed boost with homebrew with this command

Code: Select all

brew install boost --c++1 --universal
It's very long as it will compile boost (!), so this will result in a 700MB+ binary. Be patient I guess.

Move the Dependencies folder to the ogre source folder.

Run CMake 3 GUI on this folder. I disabled many things like PFX, PCZ, Samples, shader plugins, paging, overlay, terrain, volume. I also enabled unity build to speed up thing on my core 2 duo, 2GB ram, macbook 13".

Open the XCode project, OgreMain builds (alleluia).

Set your OGRE_SDK_ROOT

Code: Select all

open -a TextEdit ~/.bash_profile
export OGRE_SDK_ROOT=YOUR_SOURCE_FOLDER/SDK
Note to point the path to the /SDK/ folder

I failed to build the samples, and the ogre project templates didn't work either.

error is

Code: Select all

ld: library not found for -lboost_system-mt
Post Reply