Building Ogre 1.9 in MacOS anyone got it working?

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
Crhonos
Gnoblar
Posts: 14
Joined: Wed Jul 27, 2011 11:41 pm

Building Ogre 1.9 in MacOS anyone got it working?

Post by Crhonos »

I'm asking this now because I've spent over 2 weeks(not integraly), trying to get a good working build for Ogre 1.9 in Mac OS Mavericks (10.9.2). And I still can't have it working...
I have Xcode 5 if that matters

I have tried several ways to make it work, followed through the vast ocean of outdated tutorials and wiki entries, trying to figure out the best way to get it working. And I could get Ogre to compile and run, however the sample browser does not show anything in the screen(just a black screen), and clicking inside the Ogre window makes it crash(some error related to OIS).

This is how I installed Ogre:
I used macports to get most of the dependencies,
sudo port install OIS +universal #OIS 1.3.3
sudo port install boost +universal # (boost 1.55)
sudo port install freeimage +universal #(freeimage 3.16)
(I don't remember how I got freetype exactly...it was 2 weeks ago, but maybe the ogre deps 1.9 in sourceforge)
Installed CG from Nvidia website.
cloned ogre 1.9 from the repo
tried making a project for unix makefiles and one with xcode.

Unix makefiles only builds (with make, make install) if you choose to not have CG manager installed,otherwise it gives you an error.
The Xcode project builds fine even with CG(perhaps using xcode or make, changes the compiler you're using, and that changes the success of compiling)

Urraaay!! Got it compiled with no errors!!(lots of warnings though)
Now let's try to run the sample browser to see if it's working...
Uops, nothing just a black screen that breaks if you click with your mouse because OIS....

anyone got this to work trying a different setup...?
I would be very grateful if someone would be willing to share this knowledge, since I'm almost out of hope of getting this working... I actually bought a whole macbook just to make my Ogre projects work for MacOS and I can't get it working, it's really frustrating...( I got Ogre to work in Linux and Windows from the source though...)

Thanks in Advance.
mzu
Gnoblar
Posts: 13
Joined: Wed Jun 11, 2014 10:10 am

Re: Building Ogre 1.9 in MacOS anyone got it working?

Post by mzu »

Hi,

I have seen your post in my thread. To answer your question, yes, my samplebrowser works perfectly fine. Fyi, using cg from nvidia didn't work for me either. I had to build it without. As far as I understand, cg is only for a few examples.

I'm still working on this but it would he easier if someone using ogre ons osx could help with setting up a project.


Best,
Michael
Crhonos
Gnoblar
Posts: 14
Joined: Wed Jul 27, 2011 11:41 pm

Re: Building Ogre 1.9 in MacOS anyone got it working?

Post by Crhonos »

Thanks for dropping by Michael, could you tell me how you did select the architecture you wanted to build for in cmake?
Post Reply