The problem I've got is with correctly setting the XCode project and making it compile and link succesfully. I've followed one of the tutorials in this forum, creating the empty project, adding the AppKit, Carbon, Cocoa and OpenGL frameworks, creating a new target and setting the 4 libraries stated before as linking targets, set the SDK for Mac OS X 10.4, and finally added the include paths and the libIrrlicht.a library which I just compiled succesfully using the XCode project supplied with the source code.
The problem I've got is an error with the linker, and it's this one:
Code: Select all
/usr/bin/ld: Undefined symbols:
_IOCreatePlugInInterfaceForService
_IOIteratorNext
_IOMasterPort
_IOObjectRelease
_IORegistryEntryCreateCFProperties
_IORegistryEntryGetParentEntry
_IOServiceGetMatchingServices
_IOServiceMatching
collect2: ld returned 1 exit status
/usr/bin/ld: Undefined symbols:
_IOCreatePlugInInterfaceForService
_IOIteratorNext
_IOMasterPort
_IOObjectRelease
_IORegistryEntryCreateCFProperties
_IORegistryEntryGetParentEntry
_IOServiceGetMatchingServices
_IOServiceMatching
collect2: ld returned 1 exit status
Build failed (1 error)
I bet it's a quite common problem with XCode since those are, if I'm not mistaken, problems with the Carbon OSX API... (I've never coded a Carbon application so I don't really know).
Anyone can please give me some advice? Thanks a lot.