Page 3 of 6

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Mon Feb 20, 2012 12:55 am
by Jiterdomer
Is there any easier way to build Supermodel without having these certain kind of DirectX stuff just like Linux has?

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Mon Feb 20, 2012 1:14 am
by Bart
Jiterdomer wrote:Is there any easier way to build Supermodel without having these certain kind of DirectX stuff just like Linux has?


The Windows version normally requires DirectX. It is possible to disable Win32-specific features and build the equivalent of a UNIX binary but you would have to modify the MSVC project to exclude DirectInputSystem.cpp, remove DirectX-related libraries from the linker step, and remove the definition of SUPERMODEL_WIN32 on the compiler command line. If you're having trouble installing the DirectX SDK, this would be even more difficult for you to do. I recommend using Google to find out how other people have solved whatever errors you are getting during the SDK installation.

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Mon Feb 20, 2012 7:17 am
by nikdd
Bart wrote:
Jiterdomer wrote:Is there any easier way to build Supermodel without having these certain kind of DirectX stuff just like Linux has?


The Windows version normally requires DirectX. It is possible to disable Win32-specific features and build the equivalent of a UNIX binary but you would have to modify the MSVC project to exclude DirectInputSystem.cpp, remove DirectX-related libraries from the linker step, and remove the definition of SUPERMODEL_WIN32 on the compiler command line. If you're having trouble installing the DirectX SDK, this would be even more difficult for you to do. I recommend using Google to find out how other people have solved whatever errors you are getting during the SDK installation.


This is not such a bad idea actually for people who are having trouble installing DirectX. It shouldn't be too hard to do via a new project build configuration in the VS solution. Unless you have any objections Bart I'll have a look at doing so tonight.

Of course, people will have to bear in mind though that if they build the project this way they will lose the enhancements that DirectX brings, such as better joystick support and force feedback.

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Mon Feb 20, 2012 9:40 am
by Bart
I've got no problem with that. You're in charge of the Windows build process ;)

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Thu Mar 31, 2016 11:23 am
by Shekel
I know this is a really old topic now and probably quite outdated but I think I've got all the tools (more than I need), I just can't compile this.

Running the Build.Release.bat after everything is installed, the error is this
Image

If I use Visual Studio 2013 it says that certain vcxproj files are missing like Musashi68K.vcxproj, SDL.vcxproj etc (All the ones that are currently vcproj it expects to be vcxproj).

And I can update all of these and make them vcxproj but when compiling, it spits out a lot of errors like it can't find such directory.

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Thu Mar 31, 2016 2:20 pm
by Ian
I'll add them. Just forgot to add them to the svn. The project got upgraded automatically and new visual studio uses different file extensions

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Thu Mar 31, 2016 2:50 pm
by Shekel
Brilliant, hope it'll work after that. Thanks.

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Thu Mar 31, 2016 3:00 pm
by Kacperas
I was able to build latest SVN using both VS2013 and VS2015. Sadly, in both cases there was a problem with corrupted audio... VS2015 compiler gave me some headache, as it's more sensitive in some cases. Anyway, I had to modify some files:
- main.cpp
- audio.cpp
- layers2.cpp
- huffman.cpp

In case of main.cpp, space was missing in line 1372 between " and SUPERMODEL_VERSION. For the rest of files, 'data' was ambiguous, so either changing it to ::data or adding a namespace allowed compilation to finish.

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Fri Apr 01, 2016 1:25 am
by Shekel
I don't get how you or anyone is able to compile :) I'm missing files.

Edit: SVN was updated, cheers Ian.

Re: Building Supermodel on Windows with Visual Studio 2008

PostPosted: Sat Apr 02, 2016 8:12 am
by terminator2k2
Shekel wrote:I don't get how you or anyone is able to compile :) I'm missing files.

Edit: SVN was updated, cheers Ian.


Hi there any pointers to compiling this ? Ive downloaded the svn313 and installed ms visual studio 2013.

I keep getting errors compiling.. it also keeps saying sdl.vcxproj is missing which isnt in the svn. Or does it only neef sdlmain.vcxproj

edit:•SDL.vcxproj added to svn and can now compile :)