Samples do not build on Win7 x64 + VS2010
Opened this issue · 7 comments
After generating VS2010 project files with CMake I get these errors when building ALL_BUILD
:
Error 8 error C2758: 'test::Success' : must be initialized in constructor base/member initializer list C:\dev\projects\ogl-samples\framework\test.cpp 101
Error 9 error C2758: 'test::Profile' : must be initialized in constructor base/member initializer list C:\dev\projects\ogl-samples\framework\test.cpp 101
Error 10 error C2758: 'test::Major' : must be initialized in constructor base/member initializer list C:\dev\projects\ogl-samples\framework\test.cpp 101
Error 11 error C2758: 'test::Minor' : must be initialized in constructor base/member initializer list C:\dev\projects\ogl-samples\framework\test.cpp 101
Error 12 error C2758: 'test::FrameCount' : must be initialized in constructor base/member initializer list C:\dev\projects\ogl-samples\framework\test.cpp 101
Error 13 error C2614: 'test' : illegal member initialization: 'test' is not a base or member C:\dev\projects\ogl-samples\framework\test.cpp 101
Error 23 error C2552: 'Color' : non-aggregates cannot be initialized with initializer list C:\dev\projects\ogl-samples\tests\gl-440-fbo.cpp 324
Error 24 error C2552: 'Color' : non-aggregates cannot be initialized with initializer list C:\dev\projects\ogl-samples\tests\gl-440-fbo.cpp 325
Error 25 error LNK1104: cannot open file '..\framework\Debug\framework.lib' C:\dev\projects\ogl-samples\build\tests\LINK
Error 26 error LNK1104: cannot open file '..\framework\Debug\framework.lib' C:\dev\projects\ogl-samples\build\tests\LINK
...
Tested with both git-head and ogl-samples-4.4.1.3.7z
.
Hi,
This is because the samples now requires VS2013. The readme is now updated to clarify that.
Thanks,
Christophe
readme.txt:
================================================================================
Visual C++ instructions
--------------------------------------------------------------------------------
The OpenGL Samples Pack's project can be generated for Visual C++ 2008 and 2010,
in 32 and 64 bits using CMake.
Could you tell me which was the last version that supported VS2010? Thanks.
Anything before 4.4.2.X
This is because the samples now requires VS2013.
Can this be changed back to support vs2010?...
Visual Studio 2013 isn't the preferred tool of trade right now, having it around just to be able to run gtruc sdk is a bit of a burden :(
Christope, actually I tried creating gtruc sdk with VS 2013 installed on win7 x64 and it doesnt seem to work with latest CMake for me.
On the other hand Cmake works well and creates a VS 2010 project from gtruc sdk, but this project, when opened in VS 2013, doesn't compile either.
Can you elaborate as to what "requires 2013" actually means?.. Does it mean:
- Use VS 2013 as the compiler with CMake and compile with VS 2013 after
-- That doesn't work for me, because CMake seem to not work well with VS 2013 - Use any previous VS (10, 11) with CMake but compile with VS 2013?
-- That doesnt work for me because a VS 2010 gtruc project opened with VS 2013 still compiles with errors
Any help would be appreciated, I need to get gtruc sdk to work..
Thanks,
Alex
Ok, VS 2013 did not work for me because I wanted to install it to a drive different from C: and the installer moved the VC folder from C as well. However even running CMake from visual studio console did not setup all the parameters for CMake correctly.
Reinstalling VS 2013 on C: drive helped with CMake and now I can generate VS 12 projects for gtruc SDK. However I still see issues with Freeimage sdk not linking correctly, which is bug #32.
Christope, can you take a look at it?..
I've tried 4.4.1.1-2-3 and they all have this problem.