Spring SDK

Spring SDK

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
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Spring SDK

Post by lurker »

I've put together a package that has everything you need to download and compile svn spring on Windows. The instructions are inside. To come later will be more automation and probably an IDE.

Version 2.0:
Zip version
Self-extracting 7z
Last edited by lurker on 13 Oct 2008, 10:37, edited 8 times in total.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring SDK

Post by hoijui »

am testing it, currently compiling. Instructions.txt worked well.
the only "problem" so far:
SpringDev/trunk/AI/Global/RAI-0.553/CodeBlocks/.svn
was missing, so i had to delete
SpringDev/trunk/AI/Global/RAI-0.553/CodeBlocks
manually for the checkout to work.

nice job as it looks so far! :-)
thank you!
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Spring SDK

Post by lurker »

I've seen that folder before, or something else related to codeblocks. It has symlinks or someting in it. It has the potential to completely break the ability to use a checkout between windows and linux.
Glad to work on this, thanks.

It appears I didn't save the final instructions version before zipping. Fixed the first post.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Spring SDK

Post by Auswaschbar »

Some thoughts on cmake:
BINDIR, LIBDIR and DATADIR can be set to ".", they will use paths which are relative to CMAKE_INSTALL_PREFIX
besides this, good tutorial, maybe add it to the wiki?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Spring SDK

Post by lurker »

Version Two!
Cmake now autodetects the libraries, and instructions are almost up to date.
Jonanin
Posts: 107
Joined: 13 Jan 2008, 21:34

Re: Spring SDK

Post by Jonanin »

Awesome! Worked except for the problem with having to delete the AI folder that was causing problems as said before.

Also, I was getting errors for having bad values for the -march and -mtune switches (they were set to 'native'), so I set MARCH_FLAG in cmake to 'i686' and it worked.

EDIT: Actually, I get this at about 64%:

Code: Select all

Linking CXX executable spring.exe
g++.exe: ilu: No such file or directory
mingw32-make.exe[2]: *** [rts/spring.exe] Error 1
mingw32-make.exe[1]: *** [rts/CMakeFiles/spring.dir/all] E
mingw32-make.exe: *** [all] Error 2
EDIT2: fixed... found the problem...
In the link.txt file it looks like this:

Code: Select all

-logg -lfreetype -ldevil ilu lib\liblua.a
I fixed it by changing CMakeLists.txt:
from

Code: Select all

	set (DEVIL_ILU_LIBRARY ilu)
	set (DEVIL_LIBRARIES "devil ${DEVIL_ILU_LIBRARY}")
to

Code: Select all

	set (DEVIL_ILU_LIBRARY ilu)
	set (DEVIL_LIBRARIES "devil -l${DEVIL_ILU_LIBRARY}")
Dunno if that's a proper fix, but it worked.
Mephistos
Posts: 50
Joined: 20 Jun 2008, 06:48

Re: Spring SDK

Post by Mephistos »

nice, I will be trying this in the next few days.
Post Reply

Return to “Engine”