Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
nicklas
Posts: 1
Joined: Wed Nov 12, 2014 12:24 pm

Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Post by nicklas »

Hi,

After the upgrade to OS X 10.10 Yosemite Irrlicht 1.8.1 does not build. I am building it using irrlicht-1.8.1/source/Irrlicht/MacOSX/MacOSX.xcodeproj. I am using Xcode 6.1.

It fails with the following error:

irrlicht-1.8.1/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm:721:27: Cannot initialize a parameter of type 'id<NSWindowDelegate>' with an rvalue of type 'id<NSFileManagerDelegate>'

If I build against the 10.9 base SDK it works.

Please let me know if you need more details.

Thanks,
Nicklas
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Post by Nadro »

Thanks for a report. I'll fix this bug.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
schang
Posts: 1
Joined: Wed May 06, 2015 6:14 pm

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Post by schang »

I know I'm a little late, but my google led me to this first result, so I'm posting.

I just cast the return from [NSApp delegate] to id<NSWindowDelegate>, then everything compiles and archives right and the split screen demo ran fine.

I used the following command to replace the media path throughout the source:

Code: Select all

for i in `grep --include "*.cpp" -lr "../../media" *`; do echo $i; cp "$i" "$i.bak" && sed 's:[.][.]/[.][.]/media:/Users/schang/gdrive/Projects/TestingGrounds/irrlicht-1.8.1/media:g' "$i.bak" > "$i"; done;
And in CIrrDeviceMacOSX.mm, modify the line (around 721), to the following.

Code: Select all

[Window setDelegate:(id<NSWindowDelegate>)[NSApp delegate]];
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Post by Nadro »

Thanks, fix is available in v1.8 branch and should be merged with trunk soon.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Post by CuteAlien »

Merged with trunk now. OSX might still have trouble in trunk - I've added recently new files (b3dmeshwriter) which are probably not yet in the OSX project files.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Post by Nadro »

OK, thanks Michael, I'll fix that, however I still don't have enough time for larger commits than small fixes.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply