MacOSX Irrlicht 1.1 not compiling

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
jonasled
Posts: 34
Joined: Sat Aug 26, 2006 5:08 pm
Location: Sweden
Contact:

MacOSX Irrlicht 1.1 not compiling

Post by jonasled »

I can't get v 1.1 to compile under OSX. The changes list says that OSX was merged with the 1.1 SDK, so I guess we will not see any special OSX SDK for 1.1.

I'm compiling using the included Xcode project. Using Xcode 2.4. First I get some errors in CImageLoaderPCX.c because a lot of variables are not declared in this scope. I also get an error because CStaticMeshOBJ files are missing in 1.1. Then I get errors in COpenGLSLMaterialRenderer.cpp because of invalid conversion. There seems to be multiple issues.

My question: have anyone managed to compile 1.1 in OS X? If not, is anyone working on a fix for this?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Due to a lag in the updates of the OSX part the 1.1 SDK version was not compileable. Please use the SVN version of Irrlicht which should be ready to use.
borky89
Posts: 13
Joined: Wed Aug 23, 2006 4:07 pm
Location: Switzerland

Post by borky89 »

You have to add pngwrite.c to the project to make rev172 work.
Image

Georg
jonasled
Posts: 34
Joined: Sat Aug 26, 2006 5:08 pm
Location: Sweden
Contact:

Post by jonasled »

hybrid wrote:Due to a lag in the updates of the OSX part the 1.1 SDK version was not compileable. Please use the SVN version of Irrlicht which should be ready to use.
Thanks for this info. Thanks also to borky89 for his advice. Unfortunately I have never been able to figure out how to use SVN. Hopefully someone will release a working 1.1 SDK download soon.

By the way, I'm trying to port Darkwynd, our CRPG, to Irrlicht, because it looks like such a promising engine. I have it up and running in irr 1.0, but the support for 3D model file formats seems a bit lacking. Most of my models are B3D and 3DS. They don't load, although 3DS should be supported already. That is why I'm interested in 1.1.
borky89
Posts: 13
Joined: Wed Aug 23, 2006 4:07 pm
Location: Switzerland

Post by borky89 »

First: Install svn
Unfortunately there is only 1.3.1 prebuilt, but you could install the latest version with fink.

Second: Type into the terminal:

Code: Select all

svn checkout https://svn.sourceforge.net/svnroot/irrlicht ~/Desktop/irrlicht
Georg
jonasled
Posts: 34
Joined: Sat Aug 26, 2006 5:08 pm
Location: Sweden
Contact:

Post by jonasled »

borky89 thanks a million! That was just the kind of point in the right direction that I needed to get going.

I encountered some problems that I solved along the way and just in case someone else is banging thier head agaist the same problems instead of writing code here are some things you might want to know.

Downloading and installing svn is very easy, just double click the pkg file. Then type this in the Terminal:

Code: Select all

svn cat http://svn.collab.net/repos/svn/trunk/README
If that test fails ("command not found") you might need to add "/usr/local/bin" to your executable search path. Type this in the Terminal:

Code: Select all

PATH="/usr/local/bin:/usr/local/subversion/bin:$PATH"  
export PATH
However, chances are that this will not work either, i.e. you will get another "command not found". It turns out that at least on my machine bash was not the default shell. I had to open Preferences and change it to "/bin/bash" before I could add the PATH. There is also the option of typing the full filepath to svn each time, but that is just inconvenient.

Next I had some problem with svn complaining "Error validating server certificate". Then in the middle of fetching files I got this error:

Code: Select all

subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
svn: REPORT request failed on '/svnroot/irrlicht/!svn/vcc/default'
subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: REPORT of '/svnroot/irrlicht/!svn/vcc/default': Could not read response body: Secure connection truncated (https://svn.sourceforge.net)
What I did was just retype the command and it seems like svn started to download where it left off. This happened twice! :wink: Then after some trouble I had Checked out revision 174.

Jonas
borky89
Posts: 13
Joined: Wed Aug 23, 2006 4:07 pm
Location: Switzerland

Post by borky89 »

Thanks a lot for this great tutorial. I think a lot of people will need it.
jonasled wrote:Next I had some problem with svn complaining "Error validating server certificate". Then in the middle of fetching files I got this error:

Code: Select all

subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
svn: REPORT request failed on '/svnroot/irrlicht/!svn/vcc/default'
subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: REPORT of '/svnroot/irrlicht/!svn/vcc/default': Could not read response body: Secure connection truncated (https://svn.sourceforge.net)
What I did was just retype the command and it seems like svn started to download where it left off. This happened twice! :wink: Then after some trouble I had Checked out revision 174.

Jonas
A friend of mine has exactly the same problem. I don't know if it has to do with sourceforge or svn. Which version are you using?

Georg
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, that's connection lag from SourceForge. In very busy times I have to issue a dozen update calls before one gets through.
Post Reply