Page 1 of 1

Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Posted: Wed Nov 12, 2014 12:34 pm
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

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Posted: Thu Nov 13, 2014 8:45 am
by Nadro
Thanks for a report. I'll fix this bug.

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Posted: Wed May 06, 2015 6:44 pm
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]];

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Posted: Thu May 07, 2015 9:18 pm
by Nadro
Thanks, fix is available in v1.8 branch and should be merged with trunk soon.

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Posted: Mon May 11, 2015 10:58 am
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.

Re: Building Irrlicht 1.8.1 on OS X 10.10 Yosemite fails

Posted: Mon May 11, 2015 5:43 pm
by Nadro
OK, thanks Michael, I'll fix that, however I still don't have enough time for larger commits than small fixes.