48 hour game jam

Manu turkeyman at gmail.com
Tue Oct 16 06:29:49 PDT 2012


On 16 October 2012 16:08, Jacob Carlborg <doob at me.com> wrote:

> On 2012-10-16 13:40, Manu wrote:
>
>  Sure. I also backported the fixes into Fuji, and polished up the D
>> bindings last night to work on Linux.
>> Was gonna put a Linux build script in there, since most people here are
>> linux users.
>>
>
> We want a script for Mac OS X as well :)
> I replaced "dist/bin/premake4" with a Mac OS X binary and I tried running
> "stache/Fuji/create_project.**sh". this is the output I got:
>
> ...
>
> ==== Building Fuji (release) ====
> Creating ../Build/Release/Fuji
> glew.c
> DebugMenu.cpp
> In file included from ../../dist/include/Fuji/Fuji.**h:356,
>                  from ../Source/DebugMenu.cpp:1:
> ../../dist/include/Fuji/**MFTypes.h:69: error: ‘ssize_t’ does not name a
> type
> In file included from ../../dist/include/Fuji/Fuji.**h:390,
>                  from ../Source/DebugMenu.cpp:1:
> ../../dist/include/Fuji/Util.**h: In function ‘void MFFixUp(T*&, void*,
> int)’:
> ../../dist/include/Fuji/Util.**h:54: error: ‘intp’ was not declared in
> this scope
> ../../dist/include/Fuji/Util.**h:54: error: expected `;' before ‘offset’
> ../../dist/include/Fuji/Util.**h:57: error: ‘offset’ was not declared in
> this scope
> ../../dist/include/Fuji/Util.**h:59: error: ‘offset’ was not declared in
> this scope
> make[1]: *** [../Build/Release/Fuji/**DebugMenu.o] Error 1
> make: *** [Fuji] Error 2


Well I've not tested mac, but I'll make the Linux build work tonight, and
from that, you should be able to adapt it easily.
Does OSX have X11 libs?
If there is no X11 libs for OSX, then you will need to knock up an
MFDisplay_OSX.cpp for cocoa, which should be trivial (just create a window,
then call into MFRenderer_OpenGL.cpp init, as the windows/X11 ones do).
Infact, I'd really like to have a proper cocoa version anyway... ;)

You might also have problems with sound and input in osx, if they aren't
using the same libraries as linux. Writing the backend drivers for new
platforms is very easy, I've just never wanted to run on a mac.
I don't suppose you might like to help me out making proper support for
OSX? I'll be home on a couple of hours if we could take it offline then.
There's probably 2-3 drivers that need to be written, and some tweaks to
the typical C++ platform disambiguation nonsense at the top of Fuji.h.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121016/3b702fc9/attachment.html>


More information about the Digitalmars-d mailing list