Page 1 of 7

Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 9:16 am
by thunderbolt
Hello,

Can someone compile Supermodel v0.2 for Mac OSX ?

Thanks.

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 6:43 pm
by Arbee
Are you asking if it's possible or for someone to do it for you? :) Because it's definitely possible - any Intel Mac capable of compiling and running MAME/MESS will also compile and run Supermodel pretty easily.

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 6:46 pm
by thunderbolt
Arbee wrote:Are you asking if it's possible or for someone to do it for you? :) Because it's definitely possible - any Intel Mac capable of compiling and running MAME/MESS will also compile and run Supermodel pretty easily.


I am not a programmer and I don't know about compiling.

I would appreciate it if some people compile a Mac version of Supermodel v0.2 to run in the OSX computer.

Thanks.

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 6:55 pm
by Arbee
I can probably post a binary for systems running Lion (10.7); is your Mac on Lion or still Leopard/Snow Leopard?


Note that even with a canned binary, you will still need to install the SDL framework. That installation consists of dragging one folder into another in the Finder, as follows:

1) Go to http://www.libsdl.org/ , and click the "SDL 1.2" download link in the sidebar, then scroll down to "Mac OS X" under "Runtime Libraries".
2) Download the "SDL-1.2.14.dmg" disk image and open it.
3) Click 'Macintosh HD' (or whatever your Mac's hard disk is named) in the left pane of a Finder window.
4) Open the Library folder and drag the SDL.framework folder from the SDL disk image into the 'Frameworks' folder.

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 6:57 pm
by thunderbolt
Arbee wrote:I can probably post a binary for systems running Lion (10.7); is your Mac on Lion or still Leopard/Snow Leopard?


Note that even with a canned binary, you will still need to install the SDL framework. That installation consists of dragging one folder into another in the Finder, as follows:

1) Go to http://www.libsdl.org/ , and click the "SDL 1.2" download link in the sidebar, then scroll down to "Mac OS X" under "Runtime Libraries".
2) Download the "SDL-1.2.14.dmg" disk image and open it.
3) Click 'Macintosh HD' (or whatever your Mac's hard disk is named) in the left pane of a Finder window.
4) Open the Library folder and drag the SDL.framework folder from the SDL disk image into the 'Frameworks' folder.


I am runnung Snow Leopard 10.6.8, and I would like to try your binary.

Thank you very much for your contribution. :lol:

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 7:23 pm
by Arbee
I have posted an experimental binary here. It's 64-bit and built on Lion; I think it should work on earlier OS Xes as well, but you never know.

Caveats are included there, but I'll mention them here again:

1) You must have SDL.framework installed.
2) This is a pure command line app, like all versions of Supermodel. There are no compatible front ends for OS X yet.

It's a raw binary in a .tgz; double-click to extract the binary into the current folder. If someone more up on OS X than I wants to make a full-on bundle please feel free :)

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 8:13 pm
by RetroRepair
This works fine, however the controls need configuring as by default they are set to nothing. ;)

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 8:23 pm
by Bart
RetroRepair wrote:This works fine, however the controls need configuring as by default they are set to nothing. ;)


You ought to be able to take Config/Supermodel.ini from the Windows version and use that (Supermodel now assumes it is being distributed with that file).

Thanks for the Mac support, RB! By the way, what prevents a static binary that would work on all versions of OS X from being compiled? I'm not familiar with the Mac platform and its concept of "frameworks".

Re: Can someone compile for Mac OSX ?

PostPosted: Sun Sep 25, 2011 8:35 pm
by thunderbolt
It is a good idea to include the SDL library/framework into the OSX binary. Is it possible to do that ?

Re: Can someone compile for Mac OSX ?

PostPosted: Mon Sep 26, 2011 6:10 am
by thunderbolt
Arbee wrote:I have posted an experimental binary here. It's 64-bit and built on Lion; I think it should work on earlier OS Xes as well, but you never know.

Caveats are included there, but I'll mention them here again:

1) You must have SDL.framework installed.
2) This is a pure command line app, like all versions of Supermodel. There are no compatible front ends for OS X yet.

It's a raw binary in a .tgz; double-click to extract the binary into the current folder. If someone more up on OS X than I wants to make a full-on bundle please feel free :)


It works successfully on my i7 iMac (OSX 10.6.8) and I can get 60 fps in most of the time. Well done.