sergio_prado wrote:Is technically possible to build it to run on IOS?
I was able to build it and run o Nintendo Switch using L4T Ubuntu, but the performance was not so great, and i was thinking that an Ipad would be much more capable to run the games at full speed.
Can someone point me to any guide on how to build it on a mac, because i was only able to found build instructions for Windows and Linux. Thanks.
Building on macOS is kind-of-similar similar to linux but not really... Here are the steps...
Install the free Apple Developer tools:
If you don't have Xcode installed [you don't need it unless you want net code on an ARM Mac] then just open a Terminal and type:
- Code: Select all
cc
This will prompt you to download Apple's command line developer tools, which are all you need (see *note below)...
Install the SDL2 and SDL_net frameworks:
Download them from
https://www.libsdl.org and
https://www.libsdl.org/projects/SDL_net/, and install them in /Library/Frameworks/
[*Note: if your using an x86 Mac the above is fine, but you'll have to compile your own SDL_net framework for an M1 based Mac (using Xcode), as the distributed binaries are x86 only. The SDL2 framework is already updated and released as a universal binary ].
Download the Supermodel code archive from sourceforge.net, unzip it, and then cd to the directory in a Terminal.
Then compile/link:
- Code: Select all
ln -s /Makefiles/Makefile.OSX ./Makefile
make -j<num threads> NET_BOARD=1
[The -j<num threads> is optional.... either replace <num threads> with the number of CPU threads you want the compiler to use, or delete it entirely for a slow compile time...
THE NET_BOARD=1 is also optional... I wouldn't bother for now...]
However, you'll likely get errors from the clang compiler... per this thread
http://supermodel3.com/Forum/viewtopic.php?f=5&t=1911 I had to explicitly declare the "m68ki_int_ack()" function in "m68kcpu.h". I added it to lines 440 and 1900... [which is different to what I wrote in that thread, but how I just got r840 to build..

]
[I need to find the command line option [for clang] to turn the error back into a warning, but haven't found it yet...]Then, after all that, you should end top with a binary in the ./bin/ directory...
Just follow the normal instructions for running it from the cli, and remember to add the "-legacy3d" argument [otherwise it will have missing graphics and crash..]