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: 2347
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

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: 2347
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

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: 528
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, CA


Return to The Catwalk

Who is online

Users browsing this forum: No registered users and 9 guests