Setting up Irrlicht with XCode Tools

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
andoba
Posts: 11
Joined: Fri Jul 07, 2006 7:44 pm

Setting up Irrlicht with XCode Tools

Post by andoba »

Hello people, I'm coding a game in Irrlicht using Microsoft Visual C++ 2010 Express, I've got no problems with it but I got an Apple machine and I want to code the game for Windows and for Mac too, at the same time.

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)
The source I'm trying to compile is the engine's first example, and it compiles withouth any problems.

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.
Post Reply