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: 515
Joined: 30 Dec 2005, 22:22

linux gcc versions that compile spring

Post by malric » 07 Jan 2014, 15:50

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.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: linux gcc versions that compile spring

Post by jK » 07 Jan 2014, 16:27

GCC >=4.5~4.6 work
Last edited by jK on 07 Jan 2014, 17:24, edited 1 time in total.
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: linux gcc versions that compile spring

Post by dansan » 07 Jan 2014, 17:08

gcc 4.8.2 works for me.
0 x

abma
Spring Developer
Posts: 3554
Joined: 01 Jun 2009, 00:08

Re: linux gcc versions that compile spring

Post by abma » 08 Jan 2014, 11:15

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.
0 x

malric
Posts: 515
Joined: 30 Dec 2005, 22:22

Re: linux gcc versions that compile spring

Post by malric » 08 Jan 2014, 11:29

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.
0 x

Manoa
Posts: 79
Joined: 19 May 2008, 18:51

Re: linux gcc versions that compile spring

Post by Manoa » 04 Jun 2014, 21:20

I have successfully compiled with GCC 4.9.0 on linux x64
0 x

Post Reply

Return to “Engine”