Compiling Irrlicht on MacOSX with XCode [SOLVED]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
hach-que
Posts: 33
Joined: Thu Apr 19, 2007 10:11 am
Location: Australia

Compiling Irrlicht on MacOSX with XCode [SOLVED]

Post by hach-que »

I successfully compiled Irrlicht on MacOSX under XCode, and I've got libIrrlicht.a and the openGL framework in my application in XCode, but I get errors like:

X "_CGCaptureAllDisplays", referenced from:
--- irr::CIrrDeviceMacOSX::createWindow(<etc>
X "_CGDisplayShowCursor", referenced from:
--- irr::CIrrDeviceMacOSX::setCursorVisible(<etc>
--- irr::CIrrDeviceMacOSX::CCursorControl::setVisible(<etc>

I've never compiled applications on a Mac before (apart from Irrlicht, SDL, Lua, which was done directly before my application), and I've never actually used a Mac at all before this either.

Does anyone know what I have to do to get this linking correctly?


----------------- SOLUTION ------------------
You need to include the Cocoa framework as well as openGL.
Post Reply