Hi,
I'm trying to have Eclipse CDT running Illricht.
I was able to build the libIrrlicht.a library using the XCode project "MacOSX.xcodeproj" thats bundled inside the source directory.
I was also able to make a project on XCode running the engine perfectly.
What I don't seem able to do is to make this run on the CDT.
On XCode to run the engine needs the frameworks of OpenGL, Cocoa and Carbon.
I can add the OpenGL nicely inside CDT, but now it fails me on the symbols for the Cocoa Objective-C stuff in there and I don't know what kind of library i'm supposed to import sice its a framework...
I would appreciate any help! Thanks.
Rui
Undefined symbols:
"_CGCaptureAllDisplays", referenced from:
irr::CIrrDeviceMacOSX::createWindow() in libIrrlicht.a(CIrrDeviceMacOSX.o)
".objc_class_name_NSBundle", referenced from:
literal-pointer@__OBJC@__cls_refs@NSBundle in libIrrlicht.a(CIrrDeviceMacOSX.o)
"_CGLSetParameter", referenced from:
irr::CIrrDeviceMacOSX::createWindow() in libIrrlicht.a(CIrrDeviceMacOSX.o)
"_CGDisplayShowCursor", referenced from:
irr::CIrrDeviceMacOSX::setCursorVisible(bool) in libIrrlicht.a(CIrrDeviceMacOSX.o)
irr::CIrrDeviceMacOSX::CCursorControl::setVisible(bool) in libIrrlicht.a(CIrrDeviceMacOSX.o)
"_CGLDestroyPixelFormat", referenced from:
irr::CIrrDeviceMacOSX::createWindow() in libIrrlicht.a(CIrrDeviceMacOSX.o)
"_CFArrayGetCount", referenced from:
irr::CIrrDeviceMacOSX::getVideoModeList() in libIrrlicht.a(CIrrDeviceMacOSX.o)
".objc_class_name_NSAutoreleasePool", referenced from:
literal-pointer@__OBJC@__cls_refs@NSAutoreleasePool in libIrrlicht.a(CIrrDeviceMacOSX.o)
"_CGSetLocalEventsSuppressionInterval", referenced from:
irr::CIrrDeviceMacOSX::setMouseLocation(int, int)in libIrrlicht.a(CIrrDeviceMacOSX.o)
irr::CIrrDeviceMacOSX::CCursorControl::setPosition(int, int)in libIrrlicht.a(CIrrDeviceMacOSX.o)
".objc_class_name_NSObject", referenced from:
.objc_class_name_AppDelegate in libIrrlicht.a(AppDelegate.o)
".objc_class_name_NSString", referenced from:
literal-pointer@__OBJC@__cls_refs@NSString in libIrrlicht.a(CIrrDeviceMacOSX.o)
literal-pointer@__OBJC@__cls_refs@NSString in libIrrlicht.a(OSXClipboard.o)
Neded help from you guys running Eclipse CDT on a MacOS...
Its working! Got it.
Ok, here's the solution:
I'm new at gcc compiling, so this took a while fiddling, but now I got it, its simple once you know.
To have irrLicht running on CDT we need to setup opengl, carbon and cocoa frameworks, here's how to do it:
----------------
In project preferences:
Linker:Libraries:Library Search Path (-l) :
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks
Linker:Miscelaneous:Linker Flags :
-framework carbon -framework cocoa -framework opengl
Linker:Miscelaneous:Other Objets :
"${workspace_loc:/<#PLACE PATH TO LIBRARY HERE#>/libIrrlicht.a}"
Compiler Directories:Include Paths
Here we set it to the include files on our project....
Thats it! )
I'm new at gcc compiling, so this took a while fiddling, but now I got it, its simple once you know.
To have irrLicht running on CDT we need to setup opengl, carbon and cocoa frameworks, here's how to do it:
----------------
In project preferences:
Linker:Libraries:Library Search Path (-l) :
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks
Linker:Miscelaneous:Linker Flags :
-framework carbon -framework cocoa -framework opengl
Linker:Miscelaneous:Other Objets :
"${workspace_loc:/<#PLACE PATH TO LIBRARY HERE#>/libIrrlicht.a}"
Compiler Directories:Include Paths
Here we set it to the include files on our project....
Thats it! )