CMake fails to find Ogre framework on Mac OS X

Calder

11-03-2010 00:45:50

I'm getting the following errors from the CMake build system when I tried it on my Mac:

-- Configuring MYGUI 3.0.1
-- Detected g++ 4.0.1

-- Enabling GCC visibility flags
-- Looking for FREETYPE...
-- checking for module 'freetype2'
-- package 'freetype2' not found
-- Found FREETYPE: /usr/X11R6/lib/libfreetype.dylib
-- Looking for OGRE...
-- checking for module 'OGRE'
-- package 'OGRE' not found
-- Found Ogre Cthugha (1.7.0)
-- Could not locate OGRE
-- Looking for OIS...
-- checking for module 'OIS'
-- package 'OIS' not found
-- Found OIS: /Library/Frameworks/OIS.framework
-- Looking for Carbon...
-- checking for module 'Carbon'
-- package 'Carbon' not found
-- Found Carbon: -framework Carbon
-- Looking for Cocoa...
-- checking for module 'Cocoa'
-- package 'Cocoa' not found
-- Found Cocoa: -framework Cocoa
-- Looking for IOKit...
-- checking for module 'IOKit'
-- package 'IOKit' not found
-- Found IOKit: -framework IOKit
CMake Error at CMake/Utils/MacroLogFeature.cmake:91 (MESSAGE):



-----------------------------------------------------------------------------


-- The following REQUIRED packages could NOT be located on your system.

-- Please install them before continuing this software installation.

-- If you are in Windows, try passing -DMYGUI_DEPENDENCIES_DIR=<path to
dependencies>

-- Also check that you buildind with RenderSystem that you need or set
another with -DMYGUI_RENDERSYSTEM=<1 2 or 3 for Direct3D_9 OGRE or OpenGL>


-----------------------------------------------------------------------------


+ ogre: Support for the Ogre render system <>


-----------------------------------------------------------------------------
Call Stack (most recent call first):
CMake/Dependencies.cmake:102 (MACRO_DISPLAY_FEATURE_LOG)
CMakeLists.txt:161 (include)


Here's the weird part though:

...
-- Looking for OGRE...
-- checking for module 'OGRE'
-- package 'OGRE' not found
-- Found Ogre Cthugha (1.7.0)
-- Could not locate OGRE
...


I have Ogre installed as a framework in /Library/Frameworks (which is a pretty standard setup), but MyGUI doesn't seem to be finding it. Any suggestions / hints on the problem?

Altren

11-03-2010 12:35:09

I'm still can't figure that myself :( I have MacOS X installed in virtual machine, but I don't have enough time to work with it these days.

Calder

11-03-2010 13:16:17

Hmm, I'll do my best to troubleshoot then and keep you posted if I get anywhere.

EDIT: I eventually "fixed" this by manually setting OGRE_FOUND. For some reason all the Ogre CMake variables were set properly, it just wasn't setting OGRE_FOUND.

etapia

05-03-2012 08:26:38

You need to define the OGRE_HOME in your cmake file and point it your OGRE installation directory

set(OGRE_HOME "/usr/local/OgreSDK/")