Cmake is very nitpicky when it comes to names, be sure to name the mingwlibs EXACTLY as "mingwlibs" in the same folder as spring.PicassoCT wrote:No, but thats on a vm- in linux.Beherith wrote:Picasso did you manage to compile successfully?
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 withLet me guess. it expects to find itself somewhere in freeUs root and doesent cope with it =(Code: Select all
CMake Error at CMakeLists.txt:118 (MESSAGE): MINGWLIBS 'D:/SpringDev/Spring/mingwlibs' is not a valid directory
spring & visual studio
Moderator: Moderators
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: spring & visual studio
Re: spring & visual studio
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)
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)
-
- Posts: 823
- Joined: 21 Oct 2008, 02:54
Re: spring & visual studio
btw it requires git, when compiling spring with mingw, something that cmake needs to detect before generating a make file.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)
Re: spring & visual studio
Sure:abma wrote:@ivand:
this question is unanswered:
its pretty unclear what toolchain you are using to (try) to compile spring.did you follow the instructions from https://springrts.com/wiki/Building_Spr ... _.28v11.29 ?
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" .
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 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.
Re: spring & visual studio
can you create a pull request with the changed vclibs please? then i hopefully can help to cleanup CMakeLists.txt content.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.