Derelict2 on Mac OS X 10.7: SDL failing to build <p>I'm trying to build <a href="http://www.dsource.org/projects/derelict" rel="nofollow">Derelict2</a> on Lion as per the included <a href="http://svn.dsource.org/projects/derelict/branches/Derelict2/doc/build.html" rel="nofollow">installation instructions</a>. When I run the command <code>make -fmac.mak DC=dmd</code> the following libraries build fine:</p> <ul> <li>DerelictAllegro</li> <li>DerelictFMOD</li> <li>DerelictFT</li> <li>DerelictGL</li> <li>DerelictIL</li> <li>DerelictODE</li> <li>DerelictOgg</li> <li>DerelictPA </li> </ul> <p>Unfortunately once the script gets up to DerelictSDL it spits out the following:</p> <pre><code>make -C DerelictSDL all PLATFORM=mac dmd -release -O -inline -I../DerelictUtil -c derelict/sdl/sdl.d derelict/sdl/sdlfuncs.d derelict/sdl/sdltypes.d -Hd../import/derelict/sdl dmd -release -O -inline -I../DerelictUtil -c derelict/sdl/macinit/CoreFoundation.d derelict/sdl/macinit/DerelictSDLMacLoader.d derelict/sdl/macinit/ID.d derelict/sdl/macinit/MacTypes.d derelict/sdl/macinit/NSApplication.d derelict/sdl/macinit/NSArray.d derelict/sdl/macinit/NSAutoreleasePool.d derelict/sdl/macinit/NSDictionary.d derelict/sdl/macinit/NSEnumerator.d derelict/sdl/macinit/NSEvent.d derelict/sdl/macinit/NSGeometry.d derelict/sdl/macinit/NSMenu.d derelict/sdl/macinit/NSMenuItem.d derelict/sdl/macinit/NSNotification.d derelict/sdl/macinit/NSObject.d derelict/sdl/macinit/NSProcessInfo.d derelict/sdl/macinit/NSString.d derelict/sdl/macinit/NSZone.d derelict/sdl/macinit/runtime.d derelict/sdl/macinit/SDLMain.d derelict/sdl/macinit/selectors.d derelict/sdl/macinit/string.d -Hd../import/derelict/sdl/macinit derelict/sdl/macinit/NSString.d(134): Error: cannot implicitly convert expression (this.length()) of type ulong to uint derelict/sdl/macinit/NSString.d(135): Error: cannot implicitly convert expression (str.length()) of type ulong to uint derelict/sdl/macinit/NSString.d(140): Error: cannot implicitly convert expression (cast(ulong)(selfLen + aStringLen) - aRange.length) of type ulong to uint make[1]: *** [dmd_mac_build_sdl] Error 1 make: *** [DerelictSDL_ALL] Error 2 </code></pre>