SVN Repository

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!

SVN Repository

Postby Bart » Tue Oct 25, 2011 2:01 pm

The original Model 3 emulator that Ville Linde, Stefano Teso, and I worked on back in 2003 was always publically accessible (although we kept that a secret) via SourceForge CVS, which we used to maintain the project. I guessed correctly that nobody would ever figure it out. I figured for such a small project, security through obscurity would be the way to go the second time around as well and during this past summer, Supermodel's source code lived in a public SourceForge SVN repository.

I've decided to publish the link to the SourceForge project page here. Please note: I will not be compiling SVN builds and I would like to discourage people from distributing such builds (although I cannot prevent it). If you would like to contribute to the project, feel free to discuss in this forum, but if you are only testing out an SVN build for fun, please refrain from posting about it. Use them at your own risk. They may not always work and often times, important features are disabled.

http://sourceforge.net/projects/model3emu/

As you can see, there has not been much activity to speak of recently.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: SVN Repository

Postby Outrunner » Thu Nov 03, 2011 4:12 am

Some build instructions would be nice, for i have lost 3 hours of my life trying to get this to freaking build to no avail.

First it complained about some zlib.lib, i found it and put it in VC Directories.
Now it wants a SDLmain.lib which i have no idea where to get since it isn't in the SDL source.

If zlib and/or SDL should be built before Supermodel can be compiled then freaking add them to the solution, so that when i open the VS2008 and say Build Solution it builds successfully and not requiring me to build other things before that.

I have to go to work now, i will try again when i return but i'm losing interest in this by the HOUR.

Any help is, of course, appreciated :) .
User avatar
Outrunner
 
Posts: 38
Joined: Sat Sep 24, 2011 7:51 pm
Location: Romania - Bucharest

Re: SVN Repository

Postby Bart » Thu Nov 03, 2011 11:49 am

The current VS2008 build solution is not complete yet. It does not, for example, build the Musashi CPU core (which has to be done manually for now). Nik is going to make that change at some point in the near future. Regarding SDL, you need to follow their build instructions to produce both an SDL.lib and SDLmain.lib. I think the SDL build process is pretty straightforward. I don't know how Nik set up the MSVC project (I don't use it yet), but Supermodel usually defaults to being built with the /MT (static libraries) flag, whereas SDL builds with /MD by default. If you get weird errors regarding libcrt or msvcrt, that's the reason. Either make a custom build of SDL with /MT or try changing over to /MD in Supermodel (in the MSVC compiler and linker options). It can be quite tricky but once you get it down, it will keep working.

The way I build Supermodel is by using Makefile.SDL.Win32.MSVC. It's a rather strange set up because it requires GNU Make (from MinGW) and invokes MSVC from the command line. SDL still has to be pre-built manually and the Makefile modified accordingly.

I still don't have MSVC installed on my new machine so unfortunately I can't investigate further for you. If I can't obtain the 64-bit version through my campus, I will probably be moving over to MinGW and compiling with gcc.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: SVN Repository

Postby nikdd » Thu Nov 03, 2011 3:48 pm

I'm not sure adding the building of SDL and ZLib to the solution is really necessary, after all it's not exactly difficult to build these libraries from their source and it only needs to be done once. Both of these come with Visual C projects so it's as easy as loading those and building. Just take care to alter the project settings to build them with the /MT flag as Bart says.

Bart wrote:The current VS2008 build solution is not complete yet. It does not, for example, build the Musashi CPU core (which has to be done manually for now). Nik is going to make that change at some point in the near future.


Actually, that's in there already - it was part of the changes I committed the other night. The solution will build the Musashi CPU core from scratch now.
nikdd
 
Posts: 180
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Re: SVN Repository

Postby nikdd » Fri Nov 04, 2011 6:16 am

nikdd wrote:I'm not sure adding the building of SDL and ZLib to the solution is really necessary, after all it's not exactly difficult to build these libraries from their source and it only needs to be done once. Both of these come with Visual C projects so it's as easy as loading those and building. Just take care to alter the project settings to build them with the /MT flag as Bart says.


Actually, I've had a change of heart about this :-) - making things as straight forward as possible makes sense, so if I have time over the w/e I'll have a go at adding in projects to the solution that build SDL and ZLib as well so that Supermodel builds completely from scratch with the minimum of effort. I'll also put together some build instructions when I can (as users still need to do things like install the DirectX SDK first etc)... I can't promise anything though!

Cheers, Nik.
nikdd
 
Posts: 180
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Re: SVN Repository

Postby Outrunner » Fri Nov 04, 2011 6:54 am

nikdd wrote:
nikdd wrote:I'm not sure adding the building of SDL and ZLib to the solution is really necessary, after all it's not exactly difficult to build these libraries from their source and it only needs to be done once. Both of these come with Visual C projects so it's as easy as loading those and building. Just take care to alter the project settings to build them with the /MT flag as Bart says.


Actually, I've had a change of heart about this :-) - making things as straight forward as possible makes sense, so if I have time over the w/e I'll have a go at adding in projects to the solution that build SDL and ZLib as well so that Supermodel builds completely from scratch with the minimum of effort. I'll also put together some build instructions when I can (as users still need to do things like install the DirectX SDK first etc)... I can't promise anything though!

Cheers, Nik.


That should be the best solution.
Thanks :) .
User avatar
Outrunner
 
Posts: 38
Joined: Sat Sep 24, 2011 7:51 pm
Location: Romania - Bucharest

Re: SVN Repository

Postby Bart » Fri Nov 04, 2011 11:39 am

Thanks, Nik, I'm sure people will appreciate that. Just be sure not to include the source code of SDL and Zlib themselves (there may be licensing incompatibilities). Unless they are also GPLed. I think, however, that Zlib is not.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: SVN Repository

Postby Outrunner » Sat Nov 05, 2011 3:02 am

No need to include the sources of SDl and zlib i can download them myself and put them in the folder, i just need them to be compiled with the emu.
User avatar
Outrunner
 
Posts: 38
Joined: Sat Sep 24, 2011 7:51 pm
Location: Romania - Bucharest

Re: SVN Repository

Postby nikdd » Sat Nov 05, 2011 5:07 am

Bart wrote:Thanks, Nik, I'm sure people will appreciate that. Just be sure not to include the source code of SDL and Zlib themselves (there may be licensing incompatibilities). Unless they are also GPLed. I think, however, that Zlib is not.


Don't worry, I'm not going to include the source code of ZLib and SDL :-) I'll just add a couple of projects to the solution that will expect to see the source files already in a certain place and will build them with the correct flags etc before building Supermodel's project.

It will still be up to the user to download the correct sources for ZLib and SDL and make sure they put them in the right place (ie not much different to what they have to do now). But anyway, if I put together some build instructions too it'll hopefully make the whole process easier for people. Once done, I'll post them on here...
nikdd
 
Posts: 180
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Re: SVN Repository

Postby nikdd » Sat Nov 05, 2011 2:35 pm

Okay, I've just added some new VS projects for the third-party libraries SDL and ZLib to the SVN repository and have updated the Supermodel VS solution so that it will build them by default.

In a short while I'll post some build instructions that give all the steps required to build the SVN version of Supermodel from scratch with Visual Studio 2008.

Edit: have posted instructions as a new sticky thread.
nikdd
 
Posts: 180
Joined: Fri Sep 02, 2011 10:39 am
Location: London

Next

Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 1 guest

cron