Compiling Spring using VS2010?

Compiling Spring using VS2010?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
SDBryan
Posts: 10
Joined: 23 May 2010, 06:24

Compiling Spring using VS2010?

Post by SDBryan »

Hello, I am a developer and I'm using VS2010 as my IDE of choice. I'm having problems trying to use it to compile the Spring source code. I believe that, as part of the mod/game developer, I must know how to compile it using this IDE. But, sadly there are no VS2010 project files in the source code. However, I have some intent on using it to compile it. Anyone could help me create them to be included as part of the code itself, thanks :-)
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Compiling Spring using VS2010?

Post by Pxtl »

SDBryan wrote:Hello, I am a developer and I'm using VS2010 as my IDE of choice. I'm having problems trying to use it to compile the Spring source code. I believe that, as part of the mod/game developer, I must know how to compile it using this IDE. But, sadly there are no VS2010 project files in the source code. However, I have some intent on using it to compile it. Anyone could help me create them to be included as part of the code itself, thanks :-)
Spring's games are implemented using Lua and not by editing the C++ source files. You do not need to compile the Spring engine in order to create a game using this platform. You only need to do that if you wish to add new features or correct bugs.

So far, all the existing games available for the Spring engine use the main version of it with *no* modifications or additions to the source code and thus no compiling needed.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Compiling Spring using VS2010?

Post by smoth »

It doesn't hurt being able to compile and run the source. you can investigate how things work etc.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling Spring using VS2010?

Post by hoijui »

i recommend compiling in ubuntu on a VM, if you don't have a native one. both for native linux builds and for cross compiling, it is the easiest way. there are people using VS (usually older versions though) to build spring, but there is no good info, and the people that use it are not known to love spending time helping others to get it working.
even using MinGW as a compiler, you can still use VS as editor.

if you really want to be an engine dev, it might be worth trying to get it to work on VS. but for a mod dev, i would not recommend it.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Compiling Spring using VS2010?

Post by Pxtl »

Wait, the win32 versions of Spring are compiled under Ubuntu? TIL...
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Compiling Spring using VS2010?

Post by Neddie »

Pxtl wrote:Wait, the win32 versions of Spring are compiled under Ubuntu? TIL...
Makes so much sense. They function, after all. Couldn't be compiled in the Windows spectrum.
SDBryan
Posts: 10
Joined: 23 May 2010, 06:24

Re: Compiling Spring using VS2010?

Post by SDBryan »

Hey, guys. Some time ago, I've made the build files for VS2010, contained in the vs2010.7z archive file. Just a bare minimums, but I would like to open for more suggestions and improvements. Read the readme.txt file before you do so.
Attachments
vstudio10.7z
The 7-Zip archive for the VS2010 build files
(1.93 KiB) Downloaded 10 times
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: Compiling Spring using VS2010?

Post by SpliFF »

The latest CMake should have a generator called "Visual Studio 10". Use this to create your project files. Anything less is a half-arsed solution that will be missing important options (like toggling specific AIs) and will rapidly fall out of date like all the other attempts at creating VS files.
Post Reply

Return to “Engine”