Building Supermodel on Windows with Visual Studio 2008

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!

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Jiterdomer » Mon Feb 20, 2012 12:55 am

Is there any easier way to build Supermodel without having these certain kind of DirectX stuff just like Linux has?
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 449
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, CA

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Bart » Mon Feb 20, 2012 1:14 am

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.
User avatar
Bart
Site Admin
 
Posts: 1840
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: Building Supermodel on Windows with Visual Studio 2008

Postby nikdd » Mon Feb 20, 2012 7:17 am

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.
nikdd
 
Posts: 179
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Bart » Mon Feb 20, 2012 9:40 am

I've got no problem with that. You're in charge of the Windows build process ;)
User avatar
Bart
Site Admin
 
Posts: 1840
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Shekel » Thu Mar 31, 2016 11:23 am

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.
User avatar
Shekel
 
Posts: 341
Joined: Wed Mar 16, 2016 12:45 pm

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Ian » Thu Mar 31, 2016 2:20 pm

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
Ian
 
Posts: 879
Joined: Tue Feb 23, 2016 9:23 am

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Shekel » Thu Mar 31, 2016 2:50 pm

Brilliant, hope it'll work after that. Thanks.
User avatar
Shekel
 
Posts: 341
Joined: Wed Mar 16, 2016 12:45 pm

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Kacperas » Thu Mar 31, 2016 3:00 pm

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.
Kacperas
 
Posts: 28
Joined: Tue Sep 27, 2011 9:35 am

Re: Building Supermodel on Windows with Visual Studio 2008

Postby Shekel » Fri Apr 01, 2016 1:25 am

I don't get how you or anyone is able to compile :) I'm missing files.

Edit: SVN was updated, cheers Ian.
User avatar
Shekel
 
Posts: 341
Joined: Wed Mar 16, 2016 12:45 pm

Re: Building Supermodel on Windows with Visual Studio 2008

Postby terminator2k2 » Sat Apr 02, 2016 8:12 am

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 :)
terminator2k2
 
Posts: 35
Joined: Sat Apr 02, 2016 5:30 am

PreviousNext

Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 1 guest