How to Compile Supermodel for Windows from Latest SVN Code

Discuss Supermodel and your favorite Model 3 games. Show off your latest threads, this is the place to see and be seen.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

How to Compile Supermodel for Windows from Latest SVN Code

Postby Bart » Sun Mar 03, 2019 5:29 pm

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 :)
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

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

Postby artman999999 » Mon Mar 11, 2019 5:46 pm

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.
artman999999
 
Posts: 44
Joined: Wed Apr 27, 2016 9:36 am

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

Postby Bart » Tue Mar 12, 2019 10:56 am

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

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

Postby MetalliC » Tue Mar 19, 2019 1:16 pm

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.
MetalliC
 
Posts: 20
Joined: Wed Jul 09, 2014 2:10 am

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

Postby Jiterdomer » Sun Aug 11, 2019 9:53 pm

Is there a method of building 32-bit and Debug versions of Supermodel for GCC just like I did on Visual Studio?
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 627
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, California

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

Postby Bart » Tue Aug 20, 2019 10:23 am

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

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

Postby michaelg1234 » Fri Nov 08, 2019 7:38 am

Compiles for me in literally a few seconds using -j8 on a Ryzen 5 mobile cpu.
michaelg1234
 
Posts: 8
Joined: Mon Sep 30, 2019 12:03 am

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

Postby adam0509 » Wed Feb 05, 2020 6:09 am

still in SVN guys ? It's 2020, everybody in on Git now... :x
adam0509
 
Posts: 3
Joined: Wed Feb 05, 2020 6:03 am

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

Postby Joaquim Gonçalves » Thu Feb 27, 2020 2:07 pm

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. :)
User avatar
Joaquim Gonçalves
 
Posts: 680
Joined: Wed Dec 10, 2014 5:12 pm
Location: Portugal

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

Postby Jiterdomer » Fri Feb 28, 2020 9:27 am

There are some people using Sourceforge to these days.
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 627
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, California

Next

Return to The Catwalk

Who is online

Users browsing this forum: No registered users and 1 guest