Page 2 of 4

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

PostPosted: Wed May 13, 2020 5:32 am
by rokfpoewrkcpoqwkcp
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

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

PostPosted: Sun Aug 23, 2020 9:22 am
by Bart
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.

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

PostPosted: Sun Aug 23, 2020 11:38 am
by rokfpoewrkcpoqwkcp
deleted

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

PostPosted: Mon Aug 24, 2020 11:07 am
by VFer97
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! :)

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

PostPosted: Mon Aug 24, 2020 8:17 pm
by Bart
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).

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

PostPosted: Tue Sep 01, 2020 9:43 pm
by Bart
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.

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

PostPosted: Wed Sep 02, 2020 2:13 am
by Jiterdomer
Mr. Bart, I followed your instructions and then when I compiled to the latest SVN, it came up with this:
Image

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

PostPosted: Wed Sep 02, 2020 9:17 am
by zuppa_di_pesce
It seems you're still missing SDL

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

PostPosted: Wed Sep 02, 2020 9:51 am
by Bart
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.

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

PostPosted: Wed Sep 02, 2020 12:36 pm
by Jiterdomer
Which means that I still have to download SDL1 even though Supermodel is now using SDL2?