On 16 October 2012 16:08, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2012-10-16 13:40, Manu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sure. I also backported the fixes into Fuji, and polished up the D<br>
bindings last night to work on Linux.<br>
Was gonna put a Linux build script in there, since most people here are<br>
linux users.<br>
</blockquote>
<br></div>
We want a script for Mac OS X as well :)<br>
I replaced "dist/bin/premake4" with a Mac OS X binary and I tried running "stache/Fuji/create_project.<u></u>sh". this is the output I got:<br>
<br>
...<br>
<br>
==== Building Fuji (release) ====<br>
Creating ../Build/Release/Fuji<br>
glew.c<br>
DebugMenu.cpp<br>
In file included from ../../dist/include/Fuji/Fuji.<u></u>h:356,<br>
                 from ../Source/DebugMenu.cpp:1:<br>
../../dist/include/Fuji/<u></u>MFTypes.h:69: error: ‘ssize_t’ does not name a type<br>
In file included from ../../dist/include/Fuji/Fuji.<u></u>h:390,<br>
                 from ../Source/DebugMenu.cpp:1:<br>
../../dist/include/Fuji/Util.<u></u>h: In function ‘void MFFixUp(T*&, void*, int)’:<br>
../../dist/include/Fuji/Util.<u></u>h:54: error: ‘intp’ was not declared in this scope<br>
../../dist/include/Fuji/Util.<u></u>h:54: error: expected `;' before ‘offset’<br>
../../dist/include/Fuji/Util.<u></u>h:57: error: ‘offset’ was not declared in this scope<br>
../../dist/include/Fuji/Util.<u></u>h:59: error: ‘offset’ was not declared in this scope<br>
make[1]: *** [../Build/Release/Fuji/<u></u>DebugMenu.o] Error 1<br>
make: *** [Fuji] Error 2</blockquote><div><br></div><div>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.</div><div>Does OSX have X11 libs?</div>
<div>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).</div>
<div>Infact, I'd really like to have a proper cocoa version anyway... ;)</div><div><br></div><div>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.</div>
<div>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.</div><div>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.</div>
</div>