Compiling spring (mingw and visual studio 7/8) - Page 10

Compiling spring (mingw and visual studio 7/8)

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
Vehementi
Posts: 67
Joined: 28 Apr 2005, 23:27

Post by Vehementi »

Hi,

I want to develop for Spring, but I don't want to read through this nine-page thread and try to assemble a working version of the game over the course of a few weeks like some other posters. Is there a definitive set of instructions to get everything working? I'd really love to help, but I just don't have the time to waste dicking around with a setup.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Yes, its spread like a thin layer of peanut buttery ascii over the last nine pages, good luck.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Post by Acidd_UK »

Why should you get it any easier than the rest of us did? At least when you finally get it to compile, it's very satisfying :-)
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

It's in the Wiki, the only bit that needs correction is that PATH must include Dev-Cpp\bin, not Dev-Cpp.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Search yeilds no results so I'll post here, anybody else had a problem at the end of compilation where visual studio says
Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

Recently I've installed VC++ alongside of my scons / MinGW setup.

When I compile Spring with scons, I get the following error when I enter the game (i.e. after pressing enter on "waiting for connections"):

Image

Could this be related to VC++ (as the error mentions its runtime library), or is this caused by

Code: Select all

	assert(good_fpu_control_registers());
on line 1454 of game.cpp?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

No it's unrelated to MSVC, it's a regression. KDR_11k found it too already.

E: can you give me the arguments you passed to scons configure, or if you forgot them the file build/usropts.py

Strangely I have not yet managed to reproduce the bug here...
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Das Bruce wrote:Search yeilds no results so I'll post here, anybody else had a problem at the end of compilation where visual studio says
Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.
Adding C:\WINDOWS\system32 to the executable directories fixed this if anyones having the same problem.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

I updated instructions and added http://spring.clan-sy.com/dl/spring-vc8libs.exe , which work for me.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Using MS VS 2005 Express and that new vclibs and SVNrev 2049

still causes me to have this error:

LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc80-mt-1_33.lib'
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Check its there, you might have to reinstall the sdk.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

It has nothing to do with the SDK, the libboost should be in the vclibs.

ie. which libboost_thread-* do you have in vclibs?
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

Well i copied them and renamed them all so by files in /vclibs/boost/lib is now:

libboost_filesystem-vc80-mt-1_33.lib
libboost_filesystem-vc80-mt-1_33_1.lib
libboost_filesystem-vc80-mt-gd-1_33.lib
libboost_filesystem-vc80-mt-gd-1_33_1.lib
libboost_regex-vc80-mt-1_33.lib
libboost_regex-vc80-mt-1_33_1.lib
libboost_regex-vc80-mt-gd-1_33.lib
libboost_regex-vc80-mt-gd-1_33_1.lib
libboost_thread-vc80-mt-1_33.lib
libboost_thread-vc80-mt-1_33_1.lib
libboost_thread-vc80-mt-gd-1_33.lib
libboost_thread-vc80-mt-gd-1_33_1.lib


And if i try to compile i get these 3 errors:

http://rafb.net/paste/results/2kh4ex76.html
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

it appears i had some mistakes in the VS2005 libary's setup it's fixed and i can compile now!
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

It's probably mixing boost 1.33 headers with boost 1.33.1 libs or vice versa. Remove your previous vclibs directory and install a clean set from vc8libs.exe again.
There shouldn't be any libs with 1_33 in there, and you shouldn't have to rename things either
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

I can't find anything on the forums nor on google so does anyone here recognise this error

Code: Select all

------ Build started: Project: rts, Configuration: Release Win32 ------
Compiling...
StdAfx.cpp
d:\springsource\rts\lib\streflop\streflop.h(54) : fatal error C1189: #error :  STREFLOP: Invalid combination or unknown FPU type.
Build log was saved at "file://d:\Springsource\rts\build\vstudio7\Release\BuildLog.htm"
rts - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm using last nights svn version. :cry:
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Add "STREFLOP_X87" to the "preprocessor definitions" in the project, or just choose the "Release with error catching" configuration, that one should be up to date.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Hmm, that helps but now its giving me some feminist crap about LIBC.lib, I tried adding /NODEFAULTLIB:"LIBC" to Ignore Specific Libraries option but to no avail. :(
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

i get that warning about LIBC but for all intensive purposes its best ignoring it, as its just a warnign and if anything it makes no difference to the compiled binary.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Its an error though. :?
Post Reply

Return to “Engine”