VS2010 compiling issues.

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

User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

VS2010 compiling issues.

Post by Beherith »

I tried to compile 94.1 master on vs2010, but ran into a few issues I was able to fix:
Lots of files missing from project, and some non existing files inside project.
Set static boost libs to non-static, by setting c/c++/code generation/runtime library to /MD instead of /MT.

But I couldnt fix one issue:

Code: Select all

Error	3	error LNK2019: unresolved external symbol _compress@16 referenced in function "public: class netcode::RawPacket const * __thiscall GameData::Pack(void)const " (?Pack@GameData@@QBEPBVRawPacket@netcode@@XZ)	C:\temp\spring-master\rts\build\vstudio10\GameData.obj	rts
Error	4	error LNK2001: unresolved external symbol _compress@16	C:\temp\spring-master\rts\build\vstudio10\LuaUtils.obj	rts
Error	5	error LNK2019: unresolved external symbol _compressBound@4 referenced in function "public: class netcode::RawPacket const * __thiscall GameData::Pack(void)const " (?Pack@GameData@@QBEPBVRawPacket@netcode@@XZ)	C:\temp\spring-master\rts\build\vstudio10\GameData.obj	rts
Error	6	error LNK2001: unresolved external symbol _compressBound@4	C:\temp\spring-master\rts\build\vstudio10\LuaUtils.obj	rts
Error	7	error LNK2019: unresolved external symbol _uncompress@16 referenced in function "public: __thiscall GameData::GameData(class boost::shared_ptr<class netcode::RawPacket const >)" (??0GameData@@QAE@V?$shared_ptr@$$CBVRawPacket@netcode@@@boost@@@Z)	C:\temp\spring-master\rts\build\vstudio10\GameData.obj	rts
Error	8	error LNK2001: unresolved external symbol _uncompress@16	C:\temp\spring-master\rts\build\vstudio10\LuaUtils.obj	rts
Error	9	error LNK2019: unresolved external symbol _gzread@12 referenced in function "bool __cdecl gz_really_read(struct gzFile_s *,void *,unsigned int)" (?gz_really_read@@YA_NPAUgzFile_s@@PAXI@Z)	C:\temp\spring-master\rts\build\vstudio10\PoolArchive.obj	rts
Error	10	error LNK2019: unresolved external symbol _gzclose@4 referenced in function "protected: virtual bool __thiscall CPoolArchive::GetFileImpl(unsigned int,class std::vector<unsigned char,class std::allocator<unsigned char> > &)" (?GetFileImpl@CPoolArchive@@MAE_NIAAV?$vector@EV?$allocator@E@std@@@std@@@Z)	C:\temp\spring-master\rts\build\vstudio10\PoolArchive.obj	rts
Error	11	error LNK2019: unresolved external symbol _gzopen@8 referenced in function "protected: virtual bool __thiscall CPoolArchive::GetFileImpl(unsigned int,class std::vector<unsigned char,class std::allocator<unsigned char> > &)" (?GetFileImpl@CPoolArchive@@MAE_NIAAV?$vector@EV?$allocator@E@std@@@std@@@Z)	C:\temp\spring-master\rts\build\vstudio10\PoolArchive.obj	rts
Error	12	error LNK2019: unresolved external symbol _gzeof@4 referenced in function "public: __thiscall CPoolArchive::CPoolArchive(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0CPoolArchive@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)	C:\temp\spring-master\rts\build\vstudio10\PoolArchive.obj	rts
Error	13	error LNK2019: unresolved external symbol _SzArEx_GetFileNameUtf16 referenced in function "private: int __thiscall CSevenZipArchive::GetFileName(struct CSzArEx const *,int)" (?GetFileName@CSevenZipArchive@@AAEHPBUCSzArEx@@H@Z)	C:\temp\spring-master\rts\build\vstudio10\SevenZipArchive.obj	rts
Error	14	error LNK2019: unresolved external symbol _SzArEx_Extract referenced in function "public: virtual bool __thiscall CSevenZipArchive::GetFileImpl(unsigned int,class std::vector<unsigned char,class std::allocator<unsigned char> > &)" (?GetFileImpl@CSevenZipArchive@@UAE_NIAAV?$vector@EV?$allocator@E@std@@@std@@@Z)	C:\temp\spring-master\rts\build\vstudio10\SevenZipArchive.obj	rts
Error	15	error LNK2019: unresolved external symbol "bool __cdecl creg::RuntimeTest(void)" (?RuntimeTest@creg@@YA_NXZ) referenced in function "protected: void __thiscall SpringApp::ParseCmdLine(void)" (?ParseCmdLine@SpringApp@@IAEXXZ)	C:\temp\spring-master\rts\build\vstudio10\SpringApp.obj	rts
Error	16	error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl StartScriptGen::CreateMinimalSetup(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?CreateMinimalSetup@StartScriptGen@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV23@0@Z) referenced in function "protected: void __thiscall SpringApp::Startup(void)" (?Startup@SpringApp@@IAEXXZ)	C:\temp\spring-master\rts\build\vstudio10\SpringApp.obj	rts
Error	17	error LNK2001: unresolved external symbol "public: static class creg::ClassBinder SRectangle::binder" (?binder@SRectangle@@2VClassBinder@creg@@A)	C:\temp\spring-master\rts\build\vstudio10\RectangleOptimizer.obj	rts
Error	18	error LNK2019: unresolved external symbol @CrcUpdateT8@16 referenced in function @CrcGenerateTable@0	C:\temp\spring-master\rts\build\vstudio10\7zCrc.obj	rts
Error	19	error LNK2019: unresolved external symbol _CPU_Is_InOrder referenced in function @CrcGenerateTable@0	C:\temp\spring-master\rts\build\vstudio10\7zCrc.obj	rts
Error	20	error LNK2019: unresolved external symbol @CrcUpdateT4@16 referenced in function @CrcGenerateTable@0	C:\temp\spring-master\rts\build\vstudio10\7zCrc.obj	rts
Error	21	error LNK2019: unresolved external symbol _crc32@12 referenced in function _unzReadCurrentFile@12	C:\temp\spring-master\rts\build\vstudio10\unzip.obj	rts
Error	22	error LNK2001: unresolved external symbol _crc32@12	C:\temp\spring-master\rts\build\vstudio10\zip.obj	rts
Error	23	error LNK2019: unresolved external symbol _inflate@8 referenced in function _unzReadCurrentFile@12	C:\temp\spring-master\rts\build\vstudio10\unzip.obj	rts
Error	24	error LNK2001: unresolved external symbol _inflate@8	C:\temp\spring-master\rts\build\vstudio10\BlenderLoader.obj	rts
Error	25	error LNK2001: unresolved external symbol _inflate@8	C:\temp\spring-master\rts\build\vstudio10\XFileParser.obj	rts
Error	26	error LNK2001: unresolved external symbol _inflate@8	C:\temp\spring-master\rts\build\vstudio10\XGLLoader.obj	rts
Error	27	error LNK2019: unresolved external symbol _inflateEnd@4 referenced in function _unzCloseCurrentFile@4	C:\temp\spring-master\rts\build\vstudio10\unzip.obj	rts
Error	28	error LNK2001: unresolved external symbol _inflateEnd@4	C:\temp\spring-master\rts\build\vstudio10\BlenderLoader.obj	rts
Error	29	error LNK2001: unresolved external symbol _inflateEnd@4	C:\temp\spring-master\rts\build\vstudio10\XFileParser.obj	rts
Error	30	error LNK2001: unresolved external symbol _inflateEnd@4	C:\temp\spring-master\rts\build\vstudio10\XGLLoader.obj	rts
Error	31	error LNK2019: unresolved external symbol _get_crc_table@0 referenced in function _unzOpenCurrentFile3@20	C:\temp\spring-master\rts\build\vstudio10\unzip.obj	rts
Error	32	error LNK2001: unresolved external symbol _get_crc_table@0	C:\temp\spring-master\rts\build\vstudio10\zip.obj	rts
Error	33	error LNK2019: unresolved external symbol _inflateInit2_@16 referenced in function _unzOpenCurrentFile3@20	C:\temp\spring-master\rts\build\vstudio10\unzip.obj	rts
Error	34	error LNK2001: unresolved external symbol _inflateInit2_@16	C:\temp\spring-master\rts\build\vstudio10\BlenderLoader.obj	rts
Error	35	error LNK2001: unresolved external symbol _inflateInit2_@16	C:\temp\spring-master\rts\build\vstudio10\XFileParser.obj	rts
Error	36	error LNK2001: unresolved external symbol _inflateInit2_@16	C:\temp\spring-master\rts\build\vstudio10\XGLLoader.obj	rts
Error	37	error LNK2019: unresolved external symbol _deflate@8 referenced in function _zipWriteInFileInZip@12	C:\temp\spring-master\rts\build\vstudio10\zip.obj	rts
Error	38	error LNK2019: unresolved external symbol _deflateEnd@4 referenced in function _zipCloseFileInZipRaw@12	C:\temp\spring-master\rts\build\vstudio10\zip.obj	rts
Error	39	error LNK2019: unresolved external symbol _deflateInit2_@32 referenced in function _zipOpenNewFileInZip3@64	C:\temp\spring-master\rts\build\vstudio10\zip.obj	rts
Error	40	error LNK2019: unresolved external symbol _inflateSetDictionary@12 referenced in function "public: __thiscall Assimp::XFileParser::XFileParser(class std::vector<char,class std::allocator<char> > const &)" (??0XFileParser@Assimp@@QAE@ABV?$vector@DV?$allocator@D@std@@@std@@@Z)	C:\temp\spring-master\rts\build\vstudio10\XFileParser.obj	rts
Error	41	error LNK2019: unresolved external symbol _inflateReset@4 referenced in function "public: __thiscall Assimp::XFileParser::XFileParser(class std::vector<char,class std::allocator<char> > const &)" (??0XFileParser@Assimp@@QAE@ABV?$vector@DV?$allocator@D@std@@@std@@@Z)	C:\temp\spring-master\rts\build\vstudio10\XFileParser.obj	rts
Error	42	error LNK2019: unresolved external symbol "public: static class CAIScriptHandler & __cdecl CAIScriptHandler::Instance(void)" (?Instance@CAIScriptHandler@@SAAAV1@XZ) referenced in function "public: void __thiscall SelectionWidget::ShowScriptList(void)" (?ShowScriptList@SelectionWidget@@QAEXXZ)	C:\temp\spring-master\rts\build\vstudio10\SelectionWidget.obj	rts
Error	43	error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl StartScriptGen::CreateDefaultSetup(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?CreateDefaultSetup@StartScriptGen@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV23@000@Z) referenced in function "private: void __thiscall SelectMenu::Single(void)" (?Single@SelectMenu@@AAEXXZ)	C:\temp\spring-master\rts\build\vstudio10\SelectMenu.obj	rts
Error	44	error LNK1120: 27 unresolved externals	C:\temp\spring-master\dist\spring.exe	rts
User avatar
Deadnight Warrior
Posts: 183
Joined: 08 Jun 2009, 17:59

Re: VS2010 compiling issues.

Post by Deadnight Warrior »

If you need working vclibs (static 1.53) for VS2010 gimme a call, I've created ones like two months ago and was able to compile develop branch, but ever since abma removed VC project files I haven't tried so. Since I didn't bother with cmake's vcproj generator.
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

I got the static libs now too, but even with static libs the zlib symbols are still unresolved :(
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

did you use the deprecated existing vcstudio project file or did you generate the project files with cmake?
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

I used the project file. Ill try cmake.


EDIT: The cmake generated file also fails. Mostly with not being able to find 'sqrtf' in math.
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

can you try current develop and paste the output if if still fails?

i'm not sure when madrman applied the patches that fixed VS issues with the generated file.
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

cmake doesnt even make a project with current develop

Code: Select all

C:\temp\spring-develop>cmake -G "Visual Studio 10" CMakeLists.txt
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:119 (MESSAGE):
  MINGWLIBS is not a valid directory


-- Configuring incomplete, errors occurred!

C:\temp\spring-develop>cmake -G "Visual Studio 10" CMakeLists.txt
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1104 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.52.0

  Boost include path: C:/temp/spring-develop/vclibs/boost/include

  The following Boost libraries could not be found:

          boost_filesystem

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:248 (FIND_PACKAGE)


-- Could NOT find Boost
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
-- Found SDL: C:/temp/spring-develop/vclibs/SDL/lib/SDLmain.lib;C:/temp/spring-develop/vclibs/SDL/lib/SDL.lib (found version "1.2.14")
-- Found DevIL: C:/temp/spring-develop/vclibs/DevIL/include/IL/il.h
-- Found DevIL-ILU: C:/temp/spring-develop/vclibs/DevIL/lib/ILU.lib - C:/temp/spring-develop/vclibs/DevIL/include/IL/ilu.h
-- Found DevIL-ILUT: C:/temp/spring-develop/vclibs/DevIL/lib/ILUT.lib - C:/temp/spring-develop/vclibs/DevIL/include/IL/ilut.h
-- Found win32 libraries: dbghelp;imagehlp;ws2_32;winmm
-- Building Spring for 32bit environment
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: /openmp
-- Compiling with C++11
-- Found ZLIB: C:/temp/spring-develop/vclibs/zlib/lib/zlib.lib
-- Building Assimp with flags  /DWINDOWS /D_CRT_SECURE_NO_WARNINGS /wd4244 /wd4018 /wd4800 /wd4305 /DWIN32 /D_WINDOWS /W3 /EHa /GR            /openmp
-- Found GLEW: C:/temp/spring-develop/vclibs/glew/include (Required is at least version "1.5.1")
-- Found AWK: C:/temp/spring-develop/vclibs/bin/awk.exe
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Found AI Interface: C-AIInterface 0.1
-- Found Java: C:/Program Files (x86)/Java/jdk1.6.0_29/bin/java.exe (found version "1.6.0.29")
-- Found Java: C:/Program Files (x86)/Java/jdk1.6.0_29/bin/java.exe
-- Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
CMake Warning at AI/Interfaces/Java/CMakeLists.txt:337 (Message):
  No Java includes found!


warning: Java AI Interface will not be built!
-- Found AI Wrapper: Cpp-AIWrapper
warning: Java OO AI Wrapper will not be built!
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
-- Found Skirmish AI: AAI 0.9
-- Found Skirmish AI: CppTestAI 0.1
-- Found Skirmish AI: NullAI 0.1
warning: NullJavaAI Skirmish AI will not be built!
warning: NullOOJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: RAI 0.601
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find SevenZip (missing: SEVENZIP_BIN)
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  rts/build/cmake/FindSevenZip.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cont/base/CMakeLists.txt:7 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

C:\temp\spring-develop>
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

place 7za.exe into the installer/ folder:
https://github.com/spring/spring/raw/9a ... er/7za.exe


also, the call looks wrong, you should run:
cmake -G "Visual Studio 10" .
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

Added the 7za.exe to ./installer/

Code: Select all

C:\temp\spring-develop>cmake -G "Visual Studio 10" .
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1104 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.52.0

  Boost include path: C:/temp/spring-develop/vclibs/boost/include

  The following Boost libraries could not be found:

          boost_filesystem

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:248 (FIND_PACKAGE)


-- Could NOT find Boost
-- Found win32 libraries: dbghelp;imagehlp;ws2_32;winmm
-- Building Spring for 32bit environment
-- Compiling with C++11
-- Building Assimp with flags  /DWINDOWS /D_CRT_SECURE_NO_WARNINGS /wd4244 /wd4018 /wd4800 /wd4305 /DWIN32 /D_WINDOWS /W3 /EHa /GR            /openmp
-- Found AI Wrapper: CUtils (sources only wrapper)
-- Found AI Interface: C-AIInterface 0.1
-- Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
CMake Warning at AI/Interfaces/Java/CMakeLists.txt:337 (Message):
  No Java includes found!


warning: Java AI Interface will not be built!
-- Found AI Wrapper: Cpp-AIWrapper
warning: Java OO AI Wrapper will not be built!
-- Found AI Wrapper: LegacyCpp-AIWrapper
-- Found AI Wrapper: LegacyCpp-Creg-AIWrapper
-- Found Skirmish AI: AAI 0.9
-- Found Skirmish AI: CppTestAI 0.1
-- Found Skirmish AI: NullAI 0.1
warning: NullJavaAI Skirmish AI will not be built!
warning: NullOOJavaAI Skirmish AI will not be built!
-- Found Skirmish AI: RAI 0.601
-- Found SevenZip: C:/temp/spring-develop/installer/7za.exe
-- Found OpenAL: C:/temp/spring-develop/vclibs/OpenAL/libs/OpenAL32.lib
-- Looking for vorbis_bitrate_addblock in vorbis
-- Looking for vorbis_bitrate_addblock in vorbis - not found
-- Found OggVorbis: C:/temp/spring-develop/vclibs/ogg_vorbis/lib/ogg.lib;C:/temp/spring-develop/vclibs/ogg_vorbis/lib/vorbis.lib;C:/temp/spring-develop/vcl
ibs/ogg_vorbis/lib/vorbisfile.lib
-- Found OpenGL: opengl32
-- WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
-- Found Freetype: C:/temp/spring-develop/vclibs/freetype/lib/freetype.lib
-- WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
-- Using legacy as default engine
-- Boost version: 1.52.0
-- Found the following Boost libraries:
--   unit_test_framework
-- Configuring incomplete, errors occurred!

C:\temp\spring-develop>
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

libboost_filesystem*.lib is missing in this folder:

https://github.com/spring/vclibs10/tree ... /boost/lib

(would be great if you could make a pull request with this file...)
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

Got me some prebuilt boost from http://boost.teeks99.com/. I attached the libs to this post.

Woot! Cmake works now, thanks for the help. But building still does not.

Code: Select all

Error	143	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	lua
Error	144	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	145	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	146	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	147	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	148	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	149	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	150	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	151	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	152	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	157	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	165	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	166	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	175	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	176	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	181	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	186	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	210	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	223	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Error	228	error C1189: #error :  You should copy include/SDL_config.h.default to include/SDL_config.h	c:\temp\spring-develop\include\sdl\SDL_config.h	34	1	engine-headless
Attachments
libboost_filesystem-vc100-mt-1_52.7z
(472.37 KiB) Downloaded 8 times
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

it looks like cmake prefers spring includes:

https://github.com/spring/spring/blob/d ... nfig.h#L34

which target/.cpp file does fail to compile?
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

OK, did the sdl fix, compiling engine-multithreaded

Errors:

Code: Select all

Error	30	error MSB3073: The command "setlocal
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -DSOURCE_ROOT=C:/temp/spring-develop -DCMAKE_MODULES_SPRING=C:/temp/spring-develop/rts/build/cmake -DGENERATE_DIR=C:/temp/spring-develop -DVERSION_ADDITIONAL= -P C:/temp/spring-develop/rts/build/cmake/ConfigureVersion.cmake C:/temp/spring-develop
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets	113	6	generateVersionFiles
Error	31	error C2491: 'glClientActiveTextureARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	23	1	headlessStubs
Error	32	error C2491: 'glClientActiveTexture' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	24	1	headlessStubs
Error	33	error C2491: 'glActiveTexture' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	25	1	headlessStubs
Error	34	error C2491: 'glActiveTextureARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	26	1	headlessStubs
Error	35	error C2491: 'glDeleteFramebuffersEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	27	1	headlessStubs
Error	36	error C2491: 'glBindFramebufferEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	28	1	headlessStubs
Error	37	error C2491: 'glFramebufferTexture2DEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	29	1	headlessStubs
Error	38	error C2491: 'glFramebufferRenderbufferEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	30	1	headlessStubs
Error	39	error C2491: 'glDrawBuffersARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	32	1	headlessStubs
Error	40	error C2491: 'glDeleteBuffersARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	33	1	headlessStubs
Error	41	error C2491: 'glGenBuffersARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	34	1	headlessStubs
Error	42	error C2491: 'glBindBufferARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	35	1	headlessStubs
Error	43	error C2491: 'glBufferDataARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	36	1	headlessStubs
Error	44	error C2491: 'glGenFramebuffersEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	38	1	headlessStubs
Error	45	error C2491: 'glCheckFramebufferStatusEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	39	1	headlessStubs
Error	46	error C2491: 'glBlitFramebufferEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	42	1	headlessStubs
Error	47	error C2491: 'glDeleteQueries' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	43	1	headlessStubs
Error	48	error C2491: 'glUseProgram' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	45	1	headlessStubs
Error	49	error C2491: 'glCreateProgram' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	46	1	headlessStubs
Error	50	error C2491: 'glDeleteProgram' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	50	1	headlessStubs
Error	51	error C2491: 'glProgramParameteriEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	51	1	headlessStubs
Error	52	error C2491: 'glLinkProgram' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	52	1	headlessStubs
Error	53	error C2491: 'glGetProgramiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	53	1	headlessStubs
Error	54	error C2491: 'glGetProgramInfoLog' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	54	1	headlessStubs
Error	55	error C2491: 'glMultiTexCoord2fARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	56	1	headlessStubs
Error	56	error C2491: 'glPointParameterf' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	57	1	headlessStubs
Error	57	error C2491: 'glPointParameterfv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	58	1	headlessStubs
Error	58	error C2491: 'glMultiTexCoord3f' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	59	1	headlessStubs
Error	59	error C2491: 'glFogCoordf' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	60	1	headlessStubs
Error	60	error C2491: 'glBlendEquationSeparate' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	61	1	headlessStubs
Error	61	error C2491: 'glBlendFuncSeparatei' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	62	1	headlessStubs
Error	62	error C2491: 'glStencilOpSeparate' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	63	1	headlessStubs
Error	63	error C2491: 'glStencilFuncSeparate' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	64	1	headlessStubs
Error	64	error C2491: 'glStencilMaskSeparate' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	65	1	headlessStubs
Error	65	error C2491: 'glGenerateMipmapEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	66	1	headlessStubs
Error	66	error C2491: 'glGenQueries' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	67	1	headlessStubs
Error	67	error C2491: 'glBeginQuery' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	68	1	headlessStubs
Error	68	error C2491: 'glEndQuery' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	69	1	headlessStubs
Error	69	error C2491: 'glGetQueryObjectuiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	70	1	headlessStubs
Error	70	error C2491: 'glGetUniformLocation' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	71	1	headlessStubs
Error	71	error C2491: 'glUniform1f' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	74	1	headlessStubs
Error	72	error C2491: 'glUniform2f' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	75	1	headlessStubs
Error	73	error C2491: 'glUniform3f' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	76	1	headlessStubs
Error	74	error C2491: 'glUniform4f' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	77	1	headlessStubs
Error	75	error C2491: 'glUniform1i' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	78	1	headlessStubs
Error	76	error C2491: 'glUniform2i' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	79	1	headlessStubs
Error	77	error C2491: 'glUniform3i' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	80	1	headlessStubs
Error	78	error C2491: 'glUniform4i' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	81	1	headlessStubs
Error	79	error C2491: 'glUniformMatrix2fv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	82	1	headlessStubs
Error	80	error C2491: 'glUniformMatrix3fv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	83	1	headlessStubs
Error	81	error C2491: 'glUniformMatrix4fv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	84	1	headlessStubs
Error	82	error C2491: 'glUniform1fv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	85	1	headlessStubs
Error	83	error C2491: 'glUniform2fv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	86	1	headlessStubs
Error	84	error C2491: 'glUniform3fv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	87	1	headlessStubs
Error	85	error C2491: 'glUniform4fv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	88	1	headlessStubs
Error	86	error C2491: 'glUniform1iv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	89	1	headlessStubs
Error	87	error C2491: 'glUniform2iv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	90	1	headlessStubs
Error	88	error C2491: 'glUniform3iv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	91	1	headlessStubs
Error	89	error C2491: 'glUniform4iv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	92	1	headlessStubs
Error	90	error C2491: 'glBindRenderbufferEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	93	1	headlessStubs
Error	91	error C2491: 'glDeleteRenderbuffersEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	94	1	headlessStubs
Error	92	error C2491: 'glGenRenderbuffersEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	95	1	headlessStubs
Error	93	error C2491: 'glRenderbufferStorageEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	96	1	headlessStubs
Error	94	error C2491: 'glBlendFuncSeparate' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	97	1	headlessStubs
Error	95	error C2491: 'glIsRenderbufferEXT' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	98	1	headlessStubs
Error	96	error C2491: 'glGetActiveUniform' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	101	1	headlessStubs
Error	97	error C2491: 'glGetQueryiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	102	1	headlessStubs
Error	98	error C2491: 'glBlendColor' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	103	1	headlessStubs
Error	99	error C2491: 'glGenerateMipmap' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	105	1	headlessStubs
Error	100	error C2491: 'glGetUniformfv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	106	1	headlessStubs
Error	101	error C2491: 'glGetUniformiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	107	1	headlessStubs
Error	102	error C2491: 'glGetUniformuiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	108	1	headlessStubs
Error	103	error C2491: 'glUniform1uiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	109	1	headlessStubs
Error	104	error C2491: 'glUniform2uiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	110	1	headlessStubs
Error	105	error C2491: 'glUniform3uiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	111	1	headlessStubs
Error	106	error C2491: 'glUniform4uiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	112	1	headlessStubs
Error	107	error C2491: 'glGetActiveAttrib' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	113	1	headlessStubs
Error	108	error C2491: 'glGetAttribLocation' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	114	1	headlessStubs
Error	109	error C2491: 'glBindAttribLocation' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	115	1	headlessStubs
Error	110	error C2491: 'glIsShader' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	116	1	headlessStubs
Error	111	error C2491: 'glIsProgram' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	117	1	headlessStubs
Error	112	error C2491: 'glDetachShader' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	119	1	headlessStubs
Error	113	error C2491: 'glAttachShader' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	120	1	headlessStubs
Error	114	error C2491: 'glDeleteShader' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	121	1	headlessStubs
Error	115	error C2491: 'glCreateShader' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	122	1	headlessStubs
Error	116	error C2491: 'glGetShaderSource' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	126	1	headlessStubs
Error	117	error C2491: 'glCompileShader' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	127	1	headlessStubs
Error	118	error C2491: 'glGetShaderiv' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	128	1	headlessStubs
Error	119	error C2491: 'glGetShaderInfoLog' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	129	1	headlessStubs
Error	120	error C2491: 'glShaderSource' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	130	1	headlessStubs
Error	121	error C2491: 'glUniform1fARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	132	1	headlessStubs
Error	122	error C2491: 'glUniform2fARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	133	1	headlessStubs
Error	123	error C2491: 'glUniform3fARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	134	1	headlessStubs
Error	124	error C2491: 'glUniform4fARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	135	1	headlessStubs
Error	125	error C2491: 'glUniform1iARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	136	1	headlessStubs
Error	126	error C2491: 'glUniform2iARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	137	1	headlessStubs
Error	127	error C2491: 'glUniform3iARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	138	1	headlessStubs
Error	128	error C2491: 'glUniform4iARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	139	1	headlessStubs
Error	129	error C2491: 'glUniform1fvARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	140	1	headlessStubs
Error	130	error C2491: 'glUniform2fvARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	141	1	headlessStubs
Error	131	error C2491: 'glUniform3fvARB' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	142	1	headlessStubs
Error	132	error C1003: error count exceeds 100; stopping compilation	C:\temp\spring-develop\rts\lib\headlessStubs\glstub.c	142	1	headlessStubs
Error	133	error C2491: 'gluPerspective' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	24	1	headlessStubs
Error	134	error C2491: 'gluNewQuadric' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	26	1	headlessStubs
Error	135	error C2491: 'gluQuadricDrawStyle' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	30	1	headlessStubs
Error	136	error C2491: 'gluSphere' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	31	1	headlessStubs
Error	137	error C2491: 'gluDeleteQuadric' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	32	1	headlessStubs
Error	138	error C2491: 'gluCylinder' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	33	1	headlessStubs
Error	139	error C2491: 'gluBuild2DMipmaps' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	35	1	headlessStubs
Error	140	error C2491: 'gluOrtho2D' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	40	1	headlessStubs
Error	141	error C2491: 'gluProject' : definition of dllimport function not allowed	C:\temp\spring-develop\rts\lib\headlessStubs\glustub.c	42	1	headlessStubs
Error	142	error C2466: cannot allocate an array of constant size 0	C:\temp\spring-develop\rts\lib\headlessStubs\sdlstub.c	23	1	headlessStubs
Error	143	error C2133: 'stubKeyState' : unknown size	C:\temp\spring-develop\rts\lib\headlessStubs\sdlstub.c	23	1	headlessStubs
Error	144	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	lua
Error	145	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	146	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	147	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	148	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	149	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	150	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	151	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	152	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	153	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

hm, imo the spring includes shouldn't be used. easiest to "force" spring to use the external headers rename "include" to "include2".
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

can you try to change MINGW with WIN32 here please?
https://github.com/spring/spring/blob/d ... sts.txt#L9

(added libboost_filesystem*.lib to vc10libs)
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

Should I change that and rerun cmake?

Edit: just changing the include to include2 didnt help much:

Code: Select all

Error	1	error MSB3073: The command "setlocal
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -DSOURCE_ROOT=C:/temp/spring-develop -DCMAKE_MODULES_SPRING=C:/temp/spring-develop/rts/build/cmake -DGENERATE_DIR=C:/temp/spring-develop -DVERSION_ADDITIONAL= -P C:/temp/spring-develop/rts/build/cmake/ConfigureVersion.cmake C:/temp/spring-develop
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets	113	6	generateVersionFiles
Error	2	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	lua
Error	3	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	4	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	5	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	6	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	7	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	8	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	9	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	10	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	11	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	46	error C3016: 'i' : index variable in OpenMP 'for' statement must have signed integral type	C:\temp\spring-develop\rts\Rendering\GL\glExtra.cpp	82	1	engine-multithreaded
Error	52	error C2143: syntax error : missing ',' before ':'	C:\temp\spring-develop\rts\Rendering\DefaultPathDrawer.cpp	103	1	engine-multithreaded
Error	53	error C2530: 'sb' : references must be initialized	C:\temp\spring-develop\rts\Rendering\DefaultPathDrawer.cpp	103	1	engine-multithreaded
Error	54	error C2143: syntax error : missing ';' before '{'	C:\temp\spring-develop\rts\Rendering\DefaultPathDrawer.cpp	103	1	engine-multithreaded
Error	76	error C2059: syntax error : '{'	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	37	1	engine-multithreaded
Error	77	error C2143: syntax error : missing ';' before '}'	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	37	1	engine-multithreaded
Error	78	error C2059: syntax error : ','	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	37	1	engine-multithreaded
Error	79	error C2143: syntax error : missing ';' before '{'	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	42	1	engine-multithreaded
Error	80	error C2447: '{' : missing function header (old-style formal list?)	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	42	1	engine-multithreaded
Error	132	error C3016: 'n' : index variable in OpenMP 'for' statement must have signed integral type	C:\temp\spring-develop\rts\Sim\Path\Default\PathEstimator.cpp	491	1	engine-multithreaded
Error	376	error C2057: expected constant expression	C:\temp\spring-develop\rts\System\FileSystem\FileSystemAbstraction.cpp	191	1	engine-multithreaded
Error	377	error C2466: cannot allocate an array of constant size 0	C:\temp\spring-develop\rts\System\FileSystem\FileSystemAbstraction.cpp	191	1	engine-multithreaded
Error	378	error C2133: 'cTime' : unknown size	C:\temp\spring-develop\rts\System\FileSystem\FileSystemAbstraction.cpp	191	1	engine-multithreaded
Error	385	error C2059: syntax error : ','	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	56	1	engine-multithreaded
Error	386	error C2334: unexpected token(s) preceding '{'; skipping apparent function body	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	63	1	engine-multithreaded
Error	387	error C2059: syntax error : '{'	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	56	1	engine-multithreaded
Error	388	error C2143: syntax error : missing ';' before '}'	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	56	1	engine-multithreaded
	396	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1152	1	
	397	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1152	11	
	398	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1153	1	
	399	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1153	11	
	400	IntelliSense: variable "WINGDIAPI" is not a type name	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1154	1	
	401	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1154	21	
	402	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1155	1	
	403	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1155	11	
	404	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1156	1	
	405	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1156	11	
	406	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1157	1	
	407	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1157	11	
	408	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1158	1	
	409	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1158	11	
	410	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1159	1	
	411	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1159	11	
	412	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1160	1	
	413	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1160	11	
	414	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1161	1	
	415	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1161	11	
	416	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1162	1	
	417	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1162	11	
	418	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1163	1	
	419	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1163	11	
	420	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1164	1	
	421	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1164	11	
	422	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1165	1	
	423	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1165	11	
	424	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1166	1	
	425	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1166	11	
	426	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1167	1	
	427	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1167	11	
	428	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1168	1	
	429	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1168	11	
	430	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1169	1	
	431	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1169	11	
	432	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1170	1	
	433	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1170	11	
	434	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1171	1	
	435	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1171	11	
	436	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1172	1	
	437	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1172	11	
	438	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1173	1	
	439	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1173	11	
	440	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1174	1	
	441	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1174	11	
	442	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1175	1	
	443	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1175	11	
	444	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1176	1	
	445	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1176	11	
	446	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1177	1	
	447	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1177	11	
	448	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1178	1	
	449	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1178	11	
	450	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1179	1	
	451	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1179	11	
	452	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1180	1	
	453	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1180	11	
	454	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1181	1	
	455	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1181	11	
	456	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1182	1	
	457	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1182	11	
	458	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1183	1	
	459	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1183	11	
	460	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1184	1	
	461	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1184	11	
	462	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1185	1	
	463	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1185	11	
	464	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1186	1	
	465	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1186	11	
	466	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1187	1	
	467	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1187	11	
	468	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1188	1	
	469	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1188	11	
	470	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1189	1	
	471	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1189	11	
	472	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1190	1	
	473	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1190	11	
	474	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1191	1	
	475	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1191	11	
	476	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1192	1	
	477	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1192	11	
	478	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1193	1	
	479	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1193	11	
	480	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1194	1	
	481	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1194	11	
	482	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1195	1	
	483	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1195	11	
	484	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1196	1	
	485	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1196	11	
	486	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1197	1	
	487	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1197	11	
	488	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1198	1	
	489	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1198	11	
	490	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1199	1	
	491	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1199	11	
	492	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1200	1	
	493	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1200	11	
	494	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1201	1	
	495	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1201	11	
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

yes!

normaly cmake reruns automaticly if you change CMakeLists.txt, but i don't know if it does with VS...
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

EDIT2: also reran build with /include and /include2

Ok, reran cmake with

Code: Select all

IF    (WIN32)
	# We still need these header files,
	# even if we are not going to link with SDL.
	# We have them available anyway (mingwlibs).
	FIND_PACKAGE(SDL REQUIRED)
	INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
ELSE  (WIN32)
	# Use a direct copy of the GL and SDL headers,
	# as these may not be available on headless systems.
	INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
	INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include/SDL)
ENDIF (WIN32)
The compilation still fails :(

Code: Select all

Error	1	error MSB3073: The command "setlocal
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -DSOURCE_ROOT=C:/temp/spring-develop -DCMAKE_MODULES_SPRING=C:/temp/spring-develop/rts/build/cmake -DGENERATE_DIR=C:/temp/spring-develop -DVERSION_ADDITIONAL= -P C:/temp/spring-develop/rts/build/cmake/ConfigureVersion.cmake C:/temp/spring-develop
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets	113	6	generateVersionFiles
Error	2	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	lua
Error	3	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	4	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	5	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	6	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	7	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	8	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	9	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	10	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	11	error C1083: Cannot open include file: 'GL/glew.h': No such file or directory	C:\temp\spring-develop\rts\Rendering\GL\myGL.h	15	1	engineaGui
Error	16	error C3016: 'i' : index variable in OpenMP 'for' statement must have signed integral type	C:\temp\spring-develop\rts\Rendering\GL\glExtra.cpp	82	1	engine-multithreaded
Error	20	error C2059: syntax error : '{'	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	37	1	engine-multithreaded
Error	21	error C2143: syntax error : missing ';' before '}'	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	37	1	engine-multithreaded
Error	22	error C2059: syntax error : ','	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	37	1	engine-multithreaded
Error	23	error C2143: syntax error : missing ';' before '{'	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	42	1	engine-multithreaded
Error	24	error C2447: '{' : missing function header (old-style formal list?)	C:\temp\spring-develop\rts\Sim\Misc\CollisionVolume.cpp	42	1	engine-multithreaded
Error	32	error C3016: 'n' : index variable in OpenMP 'for' statement must have signed integral type	C:\temp\spring-develop\rts\Sim\Path\Default\PathEstimator.cpp	491	1	engine-multithreaded
Error	34	error C2059: syntax error : ','	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	56	1	engine-multithreaded
Error	35	error C2334: unexpected token(s) preceding '{'; skipping apparent function body	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	63	1	engine-multithreaded
Error	36	error C2059: syntax error : '{'	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	56	1	engine-multithreaded
Error	37	error C2143: syntax error : missing ';' before '}'	C:\temp\spring-develop\rts\System\creg\Serializer.cpp	56	1	engine-multithreaded
Error	38	error C2143: syntax error : missing ',' before ':'	C:\temp\spring-develop\rts\Rendering\DefaultPathDrawer.cpp	103	1	engine-multithreaded
Error	39	error C2530: 'sb' : references must be initialized	C:\temp\spring-develop\rts\Rendering\DefaultPathDrawer.cpp	103	1	engine-multithreaded
Error	40	error C2143: syntax error : missing ';' before '{'	C:\temp\spring-develop\rts\Rendering\DefaultPathDrawer.cpp	103	1	engine-multithreaded
Error	41	error C2057: expected constant expression	C:\temp\spring-develop\rts\System\FileSystem\FileSystemAbstraction.cpp	191	1	engine-multithreaded
Error	42	error C2466: cannot allocate an array of constant size 0	C:\temp\spring-develop\rts\System\FileSystem\FileSystemAbstraction.cpp	191	1	engine-multithreaded
Error	43	error C2133: 'cTime' : unknown size	C:\temp\spring-develop\rts\System\FileSystem\FileSystemAbstraction.cpp	191	1	engine-multithreaded
	44	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1152	1	
	45	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1152	11	
	46	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1153	1	
	47	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1153	11	
	48	IntelliSense: variable "WINGDIAPI" is not a type name	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1154	1	
	49	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1154	21	
	50	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1155	1	
	51	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1155	11	
	52	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1156	1	
	53	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1156	11	
	54	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1157	1	
	55	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1157	11	
	56	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1158	1	
	57	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1158	11	
	58	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1159	1	
	59	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1159	11	
	60	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1160	1	
	61	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1160	11	
	62	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1161	1	
	63	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1161	11	
	64	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1162	1	
	65	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1162	11	
	66	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1163	1	
	67	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1163	11	
	68	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1164	1	
	69	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1164	11	
	70	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1165	1	
	71	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1165	11	
	72	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1166	1	
	73	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1166	11	
	74	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1167	1	
	75	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1167	11	
	76	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1168	1	
	77	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1168	11	
	78	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1169	1	
	79	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1169	11	
	80	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1170	1	
	81	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1170	11	
	82	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1171	1	
	83	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1171	11	
	84	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1172	1	
	85	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1172	11	
	86	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1173	1	
	87	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1173	11	
	88	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1174	1	
	89	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1174	11	
	90	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1175	1	
	91	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1175	11	
	92	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1176	1	
	93	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1176	11	
	94	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1177	1	
	95	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1177	11	
	96	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1178	1	
	97	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1178	11	
	98	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1179	1	
	99	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1179	11	
	100	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1180	1	
	101	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1180	11	
	102	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1181	1	
	103	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1181	11	
	104	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1182	1	
	105	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1182	11	
	106	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1183	1	
	107	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1183	11	
	108	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1184	1	
	109	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1184	11	
	110	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1185	1	
	111	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1185	11	
	112	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1186	1	
	113	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1186	11	
	114	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1187	1	
	115	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1187	11	
	116	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1188	1	
	117	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1188	11	
	118	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1189	1	
	119	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1189	11	
	120	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1190	1	
	121	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1190	11	
	122	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1191	1	
	123	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1191	11	
	124	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1192	1	
	125	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1192	11	
	126	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1193	1	
	127	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1193	11	
	128	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1194	1	
	129	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1194	11	
	130	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1195	1	
	131	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1195	11	
	132	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1196	1	
	133	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1196	11	
	134	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1197	1	
	135	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1197	11	
	136	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1198	1	
	137	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1198	11	
	138	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1199	1	
	139	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1199	11	
	140	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1200	1	
	141	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1200	11	
	142	IntelliSense: this declaration has no storage class or type specifier	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1201	1	
	143	IntelliSense: expected a ';'	c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gl\gl.h	1201	11	
abma
Spring Developer
Posts: 3716
Joined: 01 Jun 2009, 00:08

Re: VS2010 compiling issues.

Post by abma »

note: please use some paste service, this thread is really unreadable... focusing atm for the non-mt build would help too, as its a bit easier to compile it...
User avatar
Beherith
Moderator
Posts: 5034
Joined: 26 Oct 2007, 16:21

Re: VS2010 compiling issues.

Post by Beherith »

Sorry about the posts, who would like to get their pole greased for collapsible code blocks in phpbb?

Also, tried building engine-legacy (that looked like its the non multithreaded, though I think the multithreaded is the default), but it threw the same errors.
Post Reply

Return to “Engine”