VS2010 compiling issues. - Page 2

VS2010 compiling issues.

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

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

Re: VS2010 compiling issues.

Post by abma »

I've fixed some bugs in current develop, but it seems current spring source won't compile with VS10 as spring uses a few C++0x features. Its more likely that it will compile with VS12, but i can't test/fix that atm, have to reinstall first..


(and yes, the collapse thing would be good, but not sure how to enable/install that for phpbb)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

current develop works with Visual Studio 2012 Express for Windows Desktop:
http://springrts.com/wiki/Building_Spri ... _.28v11.29

https://github.com/spring/spring/commit ... b0222c0bcd
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

-
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

Ok, got VS11, but for some reason its still:

Code: Select all

7>C:/temp/spring/spring/rts\Rendering/GL/myGL.h(15): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
EDIT:
maybe its trying the wrong gl.h?

Code: Select all

6>C:\Program Files (x86)\Windows Kits\8.0\Include\um\GL/gl.h(1157): error C2085: 'APIENTRY' : not in formal parameter list
EDIT2:
Ah, it was the lua project that failed to compiled with missing glew.h. I added C:\temp\spring\spring\vclibs\glew\include to its include dirs.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

i get this error too, the weird thing is, when i compile again, it works for me :-|

i'm compiling "engine-legacy"

edit:

adding

Code: Select all

FIND_PACKAGE_STATIC(GLEW 1.5.1 REQUIRED)
INCLUDE_DIRECTORIES(BEFORE ${GLEW_INCLUDE_DIR})
to rts/lib/lua/CMakeLists.txt seems to make results consistent...
Last edited by abma on 12 Jun 2013, 12:07, edited 1 time in total.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

Ah, it was the lua project that failed to compiled with missing glew.h. I added C:\temp\spring\spring\vclibs\glew\include to its include dirs. Now Lua compiles, going on to engine-legacy...

EDIT: WOHOO! It compiles!

Thank you so much abma!
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

with https://github.com/spring/spring/commit ... 7216803cf3 it should compile out of the box...

instructions should be ok, too i hope:
http://springrts.com/wiki/Building_Spri ... _.28v11.29

maybe incomplete, but understandable i think.
Post Reply

Return to “Engine”