spring & visual studio - Page 2

spring & visual studio

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

Moderator: Moderators

Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: spring & visual studio

Post by Super Mario »

PicassoCT wrote:
Beherith wrote:Picasso did you manage to compile successfully?
No, but thats on a vm- in linux.
Havent really tried it under windows. Figured when you allready run in trouble abroad, you will be even more with boozeWind..

mmh.. oh wait, just realised that in source-tree i still have a repo..

Started cmake- errored out with

Code: Select all

CMake Error at CMakeLists.txt:118 (MESSAGE):
  MINGWLIBS 'D:/SpringDev/Spring/mingwlibs' is not a valid directory
Let me guess. it expects to find itself somewhere in freeUs root and doesent cope with it =(
Cmake is very nitpicky when it comes to names, be sure to name the mingwlibs EXACTLY as "mingwlibs" in the same folder as spring.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: spring & visual studio

Post by Beherith »

Yeah, I recommend doing a fresh checkout:

git co ...spring.git
cd spring
git co ..mingwlibs.git

run cmake, select C::B
Run C::B, compile spring (make sure target is engine-legacy, you dont need the rest)
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: spring & visual studio

Post by Super Mario »

Beherith wrote:Yeah, I recommend doing a fresh checkout:

git co ...spring.git
cd spring
git co ..mingwlibs.git

run cmake, select C::B
Run C::B, compile spring (make sure target is engine-legacy, you dont need the rest)
btw it requires git, when compiling spring with mingw, something that cmake needs to detect before generating a make file.
ivand
Posts: 310
Joined: 27 Jun 2007, 17:05

Re: spring & visual studio

Post by ivand »

abma wrote:@ivand:

this question is unanswered:
did you follow the instructions from https://springrts.com/wiki/Building_Spr ... _.28v11.29 ?
its pretty unclear what toolchain you are using to (try) to compile spring.
Sure:

Code: Select all

set PATH=%PATH%;%PROGRAMFILES%\git\bin;%PROGRAMFILES%\cmake 2.8\bin\
git clone git://github.com/spring/spring.git
cd spring
git clone git://github.com/spring/vclibs11.git vclibs
cmake -G "Visual Studio 11" .
This requires a bit of changes to the first line, but for the rest the process is straightforward. I'm not even sure what could be done differently, so your question regarding toolchain is unclear for me.
abma wrote: to fix cmake imo vclibs must be updated. first of the folder structure has to be changed: all libs/includes has to be in a single directory like in mingwlibs and then the cmake code can be heavily cleaned up: a lot of code can be reused as detecting libs/headers is then the same as for mingwlibs.
Yeah probably, although I actually changed vclibs dir structure as you outlined locally when I was trying to "cmake" stuff. It didn't help much. I also tried to change CMakeLists.txt content, but yeah it requires some cmake knowledge.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: spring & visual studio

Post by abma »

ivand wrote:Yeah probably, although I actually changed vclibs dir structure as you outlined locally when I was trying to "cmake" stuff. It didn't help much. I also tried to change CMakeLists.txt content, but yeah it requires some cmake knowledge.
can you create a pull request with the changed vclibs please? then i hopefully can help to cleanup CMakeLists.txt content.
Post Reply

Return to “Engine”