Page 1 of 4

How to Compile Supermodel for Windows from Latest SVN Code

PostPosted: Sun Mar 03, 2019 5:29 pm
by Bart
If you'd like to learn how to build 64-bit Supermodel on Windows using GCC, I've posted instructions here. The whole procedure should take no more than 30-60 minutes (I watched a video of one user finishing it in 30 while narrating the process back to me). Most of the steps will only be performed one single time. Updating and recompiling to the latest revision are only a few simple steps (the last two "tasks" in the guide). Give it a try if you're adventurous :)

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Mon Mar 11, 2019 5:46 pm
by artman999999
Surprised no one has commented on this. It's been about 2 years since I compiled anything, and this guide couldn't be more clear cut and easy to follow.

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Tue Mar 12, 2019 10:56 am
by Bart
Glad it worked for you :) I think the amount of text there is putting people off but all in all there are very few actual steps.

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Tue Mar 19, 2019 1:16 pm
by MetalliC
I'd like to add build instructions for those who might be already have installed MAME's MSYS2/Mingw build tools.
1. Install older SDL libraries (1.2.15-8 at this moment)
run msys shell (C:\msys64\buildtools.bat) then type
Code: Select all
pacman -Sy mingw64/mingw-w64-x86_64-SDL
pacman -Sy mingw32/mingw-w64-i686-SDL

2. Install TortoiseSVN and download source code as per Bart's manual Tasks 5 and 6
3. Change SDL location in makefile: open C:/model3emu/Makefiles/Makefile.Win32 in text editor, then find
Code: Select all
SDL_INCLUDE_DIR = C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/include/SDL
SDL_LIB_DIR = C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib

and replace with
Code: Select all
SDL_INCLUDE_DIR = C:/msys64/mingw64/include/SDL
SDL_LIB_DIR = C:/msys64/mingw64/lib

4. Compile Supermodel
run msys shell (C:\msys64\buildtools.bat) then type
Code: Select all
cd c:/model3emu
make -f Makefiles/Makefile.Win32 clean
make -f Makefiles/Makefile.Win32 -j4

note: -j4 switch tells to use 4 threads/cores, you may wish to change number according to your CPU capabilities.

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Sun Aug 11, 2019 9:53 pm
by Jiterdomer
Is there a method of building 32-bit and Debug versions of Supermodel for GCC just like I did on Visual Studio?

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Tue Aug 20, 2019 10:23 am
by Bart
Jiterdomer wrote:Is there a method of building 32-bit and Debug versions of Supermodel for GCC just like I did on Visual Studio?


Sure. You just have to install the 32-bit GCC toolchain. It can live in a separate directory. As for debug builds, depends what you mean. If you want the Supermodel debugger you just have to edit Makefile.inc appropriately and enable it. Otherwise, if you want a non-optimized build, it’s doable with manual Makefile editing but there is literally no need for such a build unless you are developing Supermodel and need stack traces.

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Fri Nov 08, 2019 7:38 am
by michaelg1234
Compiles for me in literally a few seconds using -j8 on a Ryzen 5 mobile cpu.

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Wed Feb 05, 2020 6:09 am
by adam0509
still in SVN guys ? It's 2020, everybody in on Git now... :x

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Thu Feb 27, 2020 2:07 pm
by Joaquim Gonçalves
adam0509 wrote:still in SVN guys ? It's 2020, everybody in on Git now... :x


We do not need a stable version. This is a legit stable version. :)

Re: How to Compile Supermodel for Windows from Latest SVN Co

PostPosted: Fri Feb 28, 2020 9:27 am
by Jiterdomer
There are some people using Sourceforge to these days.