Building stk trunk on os x 10.6

Building stk trunk on os x 10.6

Postby CovertIII » 22 Sep 2013, 22:19

I am trying to build stk trunk on os x 10.6.

I was able to build the bubblegum branch because the Irrlight build is separate. Trunk now tries to build irrlight with stk on cmake. The build process is having trouble building irrlight. The error I am getting are listed below:
{l Code}: {l Select All Code}
/Users/williamcovertiii/Documents/Thinkin/Downloads/supertuxkart-code/main/trunk/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm:619: error: stray ‘@’ in program
/Users/williamcovertiii/Documents/Thinkin/Downloads/supertuxkart-code/main/trunk/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm:862: error: stray ‘@’ in program
... lots of warnings ...
make[2]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm.o] Error 1
make[1]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/all] Error 2
make: *** [all] Error 2


Then I found this on the irrlight forums:
Please use a XCode project available in source/Irrlicht/MacOSX, we doesn't support other build tools on MacOSX yet."


I can build irrlight using their xcode project. So I was wondering if can skip the irrlight build in stk and link the library at the end?

Thanks!
User avatar
CovertIII
 
Posts: 4
Joined: 17 Sep 2013, 22:15

Re: Building stk trunk on os x 10.6

Postby CovertIII » 23 Sep 2013, 03:23

I talked auria on the IRC and here's the answer that allowed me to continue to the build:

{l Code}: {l Select All Code}
21:23 < auria> in CIrrDeviceMacOSX.mm, line 619
21:23 < auria> comment out "@try" so it looks like "//@try"
21:24 < auria> then lower, locate the "@catch { ... }" part, and comment out all of it (from @catch until the corresponding closing })
21:24 < auria> I should try to find a workaround for this issue, but I just cannot figure out why it happens in the first place :(


So you don't have to skip building irrlight, just modify one the its files.
User avatar
CovertIII
 
Posts: 4
Joined: 17 Sep 2013, 22:15

Who is online

Users browsing this forum: Bing [Bot] and 1 guest