How do I installl Irrlicht on Mac OS X?

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
joetheprogrammer
Posts: 5
Joined: Mon May 29, 2006 12:21 am
Location: Canada
Contact:

How do I installl Irrlicht on Mac OS X?

Post by joetheprogrammer »

OK, I downloaded Irrlicht, but I have no clue where or how to install it. I just dumped it in /Developer and set the search paths in Xcode.

So far, so good. I also managed to get it to compile. I really like it when things compile without much configuration. You've almost got me sold on Irrlicht (the awesome website helped), but when I try to run it, I get the following error:

Code: Select all

ZeroLink: unknown symbol '__NSConstantStringClassReference'
I have added libMacOSX.a, which I compiled from the source code, to my project. I got this error when I was trying to do that first "Hello World" tutorial on your website.

Originally, I got a similar error over the createDevice(), but adding libMacOSX.a solved that.

Can anyone please help?
Glawe
Posts: 11
Joined: Tue May 02, 2006 9:22 am
Location: Lund / Sweden
Contact:

Post by Glawe »

You need to add libMacOSX.a to the project by Add Existing file. Then you need to add Cocoa.Framework and OpenGL.Framework in Add existing framework. That should help you get rid of the linker errors :)

You can add headerfiles of you rightclick on the project in the projectbrowser and select Get Info. Add a new path in Additional Headers option. (Not 100 sure of the name in there, but you cant miss it)

/Glawe
joetheprogrammer
Posts: 5
Joined: Mon May 29, 2006 12:21 am
Location: Canada
Contact:

Post by joetheprogrammer »

OK, that was really ridiculous. My fault :(

Yes, I had added the libMacOSX.a file and the header paths to my project already. That wasn't the problem.

The problem was fixed adding the Cocoa and OpenGL frameworks. Why I feel so stupid is that I've been programming in OpenGL for several months already.

So it's kind of like, "Wake up!". Thanks for all your help though.

Ideally, someone should add instructions for setting up Irrlicht under Xcode (nobody ever uses CodeWarrior these days), because it's so easy to forget one little thing.
joetheprogrammer
Posts: 5
Joined: Mon May 29, 2006 12:21 am
Location: Canada
Contact:

Post by joetheprogrammer »

Now I have (another) problem. Everything compiles, a window displays on the screen like it should, but nothing ever draws in the window. Here is the terminal output:

Code: Select all

Irrlicht Engine version 0.14.0
Darwin Kernel Version 8.6.0: Tue Mar  7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
Loaded texture: #DefaultFont
Loaded mesh: ../../sydney.md2
Loaded texture: ../../sydney.bmp
I don't know what's the problem now, but I really would like to know what's up.
Glawe
Posts: 11
Joined: Tue May 02, 2006 9:22 am
Location: Lund / Sweden
Contact:

Post by Glawe »

Are you running the demo projects or your own code ?
KiroNeem
Posts: 1
Joined: Mon May 29, 2006 5:32 pm
Location: Columbus, Ohio
Contact:

Post by KiroNeem »

I have also been getting the error about "createDevice()".

The library works fine for me if I do a debug build of it, although when I link to the release build it gives me the error about not being able to find the "createDevice()" function, eventhough I have not touched to code on either end.

I have libMacOSX.a, the header files, the OpenGL and Cocoa frameworks in the application. I have been trying for while now to get it to work, but it always comes to the same thing. If you have and suggestions please let me know.
joetheprogrammer
Posts: 5
Joined: Mon May 29, 2006 12:21 am
Location: Canada
Contact:

Post by joetheprogrammer »

I have also been getting the error about "createDevice()".

The library works fine for me if I do a debug build of it, although when I link to the release build it gives me the error about not being able to find the "createDevice()" function, eventhough I have not touched to code on either end.
I just tried that too, and I get the same error. And yes, I am using the Irrlicht Demo Hello World tutorial.

Here is a screenshot

View larger version: http://flickr.com/photo_zoom.gne?id=155896693&size=l
Image
Glawe
Posts: 11
Joined: Tue May 02, 2006 9:22 am
Location: Lund / Sweden
Contact:

Post by Glawe »

try to change the pragma line to:

#pragma comment(lib "libMacOSX.a") instead
joetheprogrammer
Posts: 5
Joined: Mon May 29, 2006 12:21 am
Location: Canada
Contact:

Post by joetheprogrammer »

Sorry, but it still does not work. Of course, you did catch that error I had there with the incorrect library in the pragma comment, but fixing that did not seem to make any difference.

Also, I tried debugging it with GDB to see if it is hanging on any lines, but everything seems to run as it should, just nothing displays in the window.
comedian
Posts: 1
Joined: Mon Jul 03, 2006 7:27 pm

Post by comedian »

I know this is an oldish post, but in case someone is having the same problem you need to change the device to video::EDT_OPENGL. (At least worked for me.)
Post Reply