linux gcc versions that compile spring

linux gcc versions that compile spring

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
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

linux gcc versions that compile spring

Post by malric »

What are the gcc versions on which spring compiles (where I can find such a list) ? The page http://springrts.com/wiki/Building_Spring_on_Linux does specify "4.x serie should be safe", but I have tried to compile with gcc 4.4 (centos 6.5, not my main system) and I got errors in rts/System/float3.h (easily fixable) and in rts/lib/assimp/code/BlenderScene.cpp (looks kind of ugly, did not try to fix it).

As a note, I was not even trying to compile to play online, just to check on the map loading speed problems that were reported on 0.96.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: linux gcc versions that compile spring

Post by jK »

GCC >=4.5~4.6 work
Last edited by jK on 07 Jan 2014, 17:24, edited 1 time in total.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: linux gcc versions that compile spring

Post by dansan »

gcc 4.8.2 works for me.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: linux gcc versions that compile spring

Post by abma »

current development version checks for gcc >= 4.6

https://github.com/spring/spring/commit ... 7ffc1bdd4c

not sure if 4.5 works, if so, this check could be adjusted.
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Re: linux gcc versions that compile spring

Post by malric »

Just checked, 4.5.4 did not work due to some file in assimp (I guess code of 0.96 was not checking as I did not get any error at cmake). Think the check is correct.
Manoa
Posts: 79
Joined: 19 May 2008, 18:51

Re: linux gcc versions that compile spring

Post by Manoa »

I have successfully compiled with GCC 4.9.0 on linux x64
Post Reply

Return to “Engine”