Page 1 of 1

Compiling Irrlicht on MacOSX with XCode [SOLVED]

Posted: Fri Jan 02, 2009 6:36 am
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.