Building Supermodel on Ubuntu Linux

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
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!

Building Supermodel on Ubuntu Linux

Postby nikdd » Mon Jan 02, 2012 11:08 am

Steps for building Supermodel on Ubuntu Linux

The following are instructions on how to build on Ubuntu the latest development version (or a particular release) of Supermodel from the SVN repository.

These steps have been tested on Ubuntu 10.04 32-Bit & 64-Bit and Ubuntu 11.10 32-Bit. Apart from step 1 (which simply ensures that Ubuntu has the correct packages installed) the steps should be pretty much the same for other versions of Ubuntu and for other distributions of Linux.

Steps

1. Ensure you have the necessary tools installed (this only needs to be done once):

Code: Select all
sudo apt-get install subversion build-essential libsdl1.2-dev libglew1.5-dev zlib1g-dev


2. Download the source from SVN:

Code: Select all
mkdir Supermodel
cd Supermodel


a) To download the latest development version:

Code: Select all
svn co https://model3emu.svn.sourceforge.net/svnroot/model3emu/trunk
cd trunk


b) To download a particular SVN revision of the code:

Code: Select all
svn co -r REVISION https://model3emu.svn.sourceforge.net/svnroot/model3emu/trunk
cd trunk


where REVISION is the revision number, eg 264

c) To download a particular release:

Code: Select all
svn co https://model3emu.svn.sourceforge.net/svnroot/model3emu/tags/VERSION
cd VERSION


where VERSION is the release number, eg 0.1.2a or 0.2a.

NOTE: version 0.1.2a does not build under Ubuntu 11.10.

d) Alternatively, download the latest release's source in a tar file from http://www.supermodel3.com/Download.html.

3. Compile the source:

Code: Select all
ln -s Makefiles/Makefile.SDL.UNIX.GCC Makefile
make


4. Run the emulator:

Code: Select all
cd bin
mkdir Config NVRAM Saves
cp ../Config/Supermodel.ini Config
./Supermodel PATH_TO_ROMS/GAME.zip


where PATH_TO_ROMS is the path to where all your ROMs are and GAME is the name of the game's ROM.

NOTE: for version 0.1.2a, the location of the outputted executable is different and there is no Supermodel.ini to copy.

See http://www.supermodel3.com/Usage.html for more help with running Supermodel.

Enjoy!
nikdd
 
Posts: 180
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Re: Building Supermodel on Ubuntu Linux

Postby sergio-br2 » Mon Apr 04, 2016 2:40 pm

Are there any reason to not use Supermodel from the PPA? There are packages there since 2015 May...
sergio-br2
 
Posts: 22
Joined: Wed May 27, 2015 7:14 pm

Re: Building Supermodel on Ubuntu Linux

Postby addamm » Sun Dec 23, 2018 9:03 am

>>> Building Supermodel3 on (Arch)Linux <<<

Code: Select all
# pacman -S gcc make sdl subversion
$ mkdir srcbuilds
$ cd srcbuilds/
$ svn checkout https://svn.code.sf.net/p/model3emu/code/trunk model3emu-code
$ cd model3emu-code/
$ ln -s Makefiles/Makefile.UNIX Makefile
$ make -j(NumberOfYourCPUs)
$ cp -r Config/ bin/
$ cd bin/
$ mkdir {NVRAM,Saves,roms}
$ ./supermodel roms/rom.zip


Smile! ;) 8-)
archlinux@ryzen1700+rx550
User avatar
addamm
 
Posts: 9
Joined: Thu Dec 20, 2018 4:19 am
Location: over here!

Re: Building Supermodel on Ubuntu Linux

Postby Bart » Mon Dec 24, 2018 10:12 am

Thanks for posting that! I’ll soon fix the Makefile to make those folders automatically.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Building Supermodel on Ubuntu Linux

Postby zuppa_di_pesce » Sun Jun 14, 2020 5:18 am

addamm wrote:>>> Building Supermodel3 on (Arch)Linux <<<

Code: Select all
# pacman -S gcc make sdl subversion
$ mkdir srcbuilds
$ cd srcbuilds/
$ svn checkout https://svn.code.sf.net/p/model3emu/code/trunk model3emu-code
$ cd model3emu-code/
$ ln -s Makefiles/Makefile.UNIX Makefile
$ make -j(NumberOfYourCPUs)
$ cp -r Config/ bin/
$ cd bin/
$ mkdir {NVRAM,Saves,roms}
$ ./supermodel roms/rom.zip


Smile! ;) 8-)

glu is needed:
Code: Select all
pacman -S glu gcc make sdl subversion
"Did you surfcast that fish?" - "Kinda... But... That wasn't a fish... It was a GNU!"
User avatar
zuppa_di_pesce
 
Posts: 120
Joined: Fri Jun 12, 2020 1:51 pm
Location: surfCASTING on a beach

Re: Building Supermodel on Ubuntu Linux

Postby TheOldDragon » Sat Jul 25, 2020 11:46 am

I just built from source [today] on Ubuntu 20.04 LTS, and Scud Race Plus works perfectly in "Single" mode.

Specs:
Ubuntu 20.04 LTS - x64, fully updated
Ryzen 5 3600 CPU, Radeon 5500 XT "Navi" GPU, open source AMD drivers

Install dependencies:
Code: Select all
sudo apt install subversion
sudo apt install libsdl2-dev
sudo apt install libsdl2-net-dev

Build it:
Code: Select all
svn checkout https://svn.code.sf.net/p/model3emu/code/trunk model3emu-code
cd model3emu-code/
ln -s Makefiles/Makefile.UNIX Makefile
make

Prepare:
create directories, copy files, as above posts..

Run it:
Code: Select all
./supermodel ./Roms/<rom.zip> -res=1920,1080 -show-fps -quad-rendering -wide-screen
TheOldDragon
 
Posts: 62
Joined: Sat May 30, 2020 5:39 am

Re: Building Supermodel on Ubuntu Linux

Postby Bart » Sat Jul 25, 2020 3:03 pm

Awesome! Thanks for doing this.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Building Supermodel (w/ network card) on Ubuntu Linux

Postby zuppa_di_pesce » Sun Aug 09, 2020 3:40 am

If anyone needs networking in Linux, just have a look at this post (TheOldDragon).
"Did you surfcast that fish?" - "Kinda... But... That wasn't a fish... It was a GNU!"
User avatar
zuppa_di_pesce
 
Posts: 120
Joined: Fri Jun 12, 2020 1:51 pm
Location: surfCASTING on a beach

Re: Building Supermodel on Ubuntu Linux

Postby EggHead » Mon Nov 08, 2021 10:56 am

TheOldDragon wrote:Install dependencies:
Code: Select all
sudo apt install subversion
sudo apt install libsdl2-dev
sudo apt install libsdl2-net-dev

Build it:
Code: Select all
svn checkout https://svn.code.sf.net/p/model3emu/code/trunk model3emu-code
cd model3emu-code/
ln -s Makefiles/Makefile.UNIX Makefile
make

Prepare:
create directories, copy files, as above posts..


This worked like a charm, thank you.
User avatar
EggHead
 
Posts: 1
Joined: Tue Oct 26, 2021 12:53 pm

Re: Building Supermodel on Ubuntu Linux

Postby isaach77 » Thu Feb 24, 2022 1:12 pm

Step 3 isn't working from what I can tell. Installing trunk from the URL isn't cannot connect. I following the post above for independence's then following the steps from the first post for installing supermodel. Any Idea or is this outdated?

nikdd wrote:Steps for building Supermodel on Ubuntu Linux

The following are instructions on how to build on Ubuntu the latest development version (or a particular release) of Supermodel from the SVN repository.

These steps have been tested on Ubuntu 10.04 32-Bit & 64-Bit and Ubuntu 11.10 32-Bit. Apart from step 1 (which simply ensures that Ubuntu has the correct packages installed) the steps should be pretty much the same for other versions of Ubuntu and for other distributions of Linux.

Steps

1. Ensure you have the necessary tools installed (this only needs to be done once):

Code: Select all
sudo apt-get install subversion build-essential libsdl1.2-dev libglew1.5-dev zlib1g-dev


2. Download the source from SVN:

Code: Select all
mkdir Supermodel
cd Supermodel


a) To download the latest development version:

Code: Select all
svn co https://model3emu.svn.sourceforge.net/svnroot/model3emu/trunk
cd trunk


b) To download a particular SVN revision of the code:

Code: Select all
svn co -r REVISION https://model3emu.svn.sourceforge.net/svnroot/model3emu/trunk
cd trunk


where REVISION is the revision number, eg 264

c) To download a particular release:

Code: Select all
svn co https://model3emu.svn.sourceforge.net/svnroot/model3emu/tags/VERSION
cd VERSION


where VERSION is the release number, eg 0.1.2a or 0.2a.

NOTE: version 0.1.2a does not build under Ubuntu 11.10.

d) Alternatively, download the latest release's source in a tar file from http://www.supermodel3.com/Download.html.

3. Compile the source:

Code: Select all
ln -s Makefiles/Makefile.SDL.UNIX.GCC Makefile
make


4. Run the emulator:

Code: Select all
cd bin
mkdir Config NVRAM Saves
cp ../Config/Supermodel.ini Config
./Supermodel PATH_TO_ROMS/GAME.zip


where PATH_TO_ROMS is the path to where all your ROMs are and GAME is the name of the game's ROM.

NOTE: for version 0.1.2a, the location of the outputted executable is different and there is no Supermodel.ini to copy.

See http://www.supermodel3.com/Usage.html for more help with running Supermodel.

Enjoy!
isaach77
 
Posts: 1
Joined: Thu Jul 22, 2021 9:11 pm

Next

Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 0 guests