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!

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

Postby rokfpoewrkcpoqwkcp » Wed May 13, 2020 5:32 am

Hello Mr Bart

Please could you advise any changes needed to make your instructions work with SDL2.

I'm getting nowhere with it. An updated guide for us dummies would be great.

Thanks


EDIT:
I've just realised I can't even compile r787 properly with the original instructions.
I end up with a supermodel.exe that works on my desktop but not on my laptop.
I'm clearly doing something wrong
I'll try again sometime
rokfpoewrkcpoqwkcp
 
Posts: 119
Joined: Mon Nov 18, 2019 3:40 pm

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

Postby Bart » Sun Aug 23, 2020 9:22 am

What error are you seeing on the other computer? My guess is that you are not copying over a DLL. I thought I had written the Makefile to perform static compilation but it's possible that gcc is generating a binary that relies on a DLL.
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 rokfpoewrkcpoqwkcp » Sun Aug 23, 2020 11:38 am

deleted
Last edited by rokfpoewrkcpoqwkcp on Fri Sep 25, 2020 7:45 pm, edited 1 time in total.
rokfpoewrkcpoqwkcp
 
Posts: 119
Joined: Mon Nov 18, 2019 3:40 pm

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

Postby VFer97 » Mon Aug 24, 2020 11:07 am

rokfpoewrkcpoqwkcp wrote:Hello Mr Bart

Please could you advise any changes needed to make your instructions work with SDL2.

I'm getting nowhere with it. An updated guide for us dummies would be great.

Thanks


EDIT:
I've just realised I can't even compile r787 properly with the original instructions.
I end up with a supermodel.exe that works on my desktop but not on my laptop.
I'm clearly doing something wrong
I'll try again sometime


Hi people!

Thanks a lot Bart for the detailed instructions. I followed them to a T, everything went exactly as explained in your tutorial, however I got a fatal error in the last stage:

In file included from Src/OSD/SDL/SDLInputSystem.h:34,
from Src/OSD/SDL/Main.cpp:66:
Src/OSD/SDL/SDLIncludes.h:36:10: fatal error: SDL.h: No such file or directory
#include <SDL.h>
^~~~~~~
compilation terminated.
mingw32-make: *** [Makefiles/Rules.inc:246: obj64/Main.o] Error 1

Therefore no bin64 exe file was generated.


I think it is because of the integration of SDL2 in commits r790 and newer.
I second the above message: it would be great if you could please help us newbies compile the latest version, as the makefile.win32 is now only for SDL2.

Thanks a lot! :)
10年早かったか
User avatar
VFer97
 
Posts: 17
Joined: Sat May 30, 2020 12:51 am
Location: Madrid, Spain

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

Postby Bart » Mon Aug 24, 2020 8:17 pm

I'll have to take a look sometime. Maybe this weekend. I should also take the opportunity to install a newer version of gcc. Been super busy lately so can't guarantee it. The procedure for installing SDL2 is pretty simple though and very similar to the original (in fact, I think there are no command line switches). In the meantime, you may wish to download SDL2 and try to install it yourself. It's the same basic procedure. You extract the archive and in the MSYS command prompt, you would do something like:

Code: Select all
./configure
make
make install


You can get help by typing:

Code: Select all
./configure --help


When in the SDL2 source directory that you extracted. You probably won't want to change any of the options but can use --prefix=<dir> to specify where it gets installed. By default, it should install itself somewhere in the compiler's library directory (similar to where SDL would go). Once it's all built and installed you may have to locate it and then adjust Makefile.Win32 accordingly (there is a place where the path to SDL2 is specified).
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 Bart » Tue Sep 01, 2020 9:43 pm

The instructions have been updated to reflect the latest build procedure with SDL2. Things are quite a bit simpler now using MSYS2. Please let me know if crashes are experienced.
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 Jiterdomer » Wed Sep 02, 2020 2:13 am

Mr. Bart, I followed your instructions and then when I compiled to the latest SVN, it came up with this:
Image
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 zuppa_di_pesce » Wed Sep 02, 2020 9:17 am

It seems you're still missing SDL
"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: How to Compile Supermodel for Windows from Latest SVN Co

Postby Bart » Wed Sep 02, 2020 9:51 am

The problem is that the Makefile has not been updated in the source tree. I'll ask SpinDizzi to upload a fixed version and the instructions will then work.
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 Jiterdomer » Wed Sep 02, 2020 12:36 pm

Which means that I still have to download SDL1 even though Supermodel is now using SDL2?
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

PreviousNext

Return to The Catwalk

Who is online

Users browsing this forum: No registered users and 1 guest