Page 1 of 1
Compiling errors - svn13654 - VS2012express
Posted: Wed Aug 28, 2013 5:23 am
by shenle
Code: Select all
Error 1182 error C2065: 'GL_TEXTURE_CUBE_MAP_SEAMLESS' : undeclared identifier C:\games\vegastrike\svn\vegastrike\src\gldrv\gl_init.cpp 687 1 vegastrike
Code: Select all
Error 1552 error C2664: 'aligned_allocator<T>::aligned_allocator(const aligned_allocator<T> &) throw()' : cannot convert parameter 1 from 'std::_Wrap_alloc<_Alloc>' to 'const aligned_allocator<T> &' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\vector 1102 1 vegastrike
With regard to the first error, after reading pheonixstorm's thread on the same error I tried adding the glew headers to the project, but then I end up with hundreds of boost files not found, and it doesn't fix the original error.See attached error.txt
This is all using the project in vega-vc10
Re: Compiling errors - svn13654 - VS2012express
Posted: Fri Aug 30, 2013 2:12 am
by pheonixstorm
I haven't tried adding glew yet so not sure.. did you compile glew yourself or use a precompiled dll?
Re: Compiling errors - svn13654 - VS2012express
Posted: Sat Aug 31, 2013 4:57 am
by shenle
I used the precompiled dll available from the glew homepage.
FWIW my last Windows successful compile was at r13600. It was done with the exact same toolchain I'm using now.
Re: Compiling errors - svn13654 - VS2012express
Posted: Sat Aug 31, 2013 5:03 am
by loki1950
I used the precompiled dll available from the glew homepage.
It may not have been compiled with VS2012 so that could be your problem.
Enjoy the Choice
Re: Compiling errors - svn13654 - VS2012express
Posted: Sat Aug 31, 2013 11:13 pm
by shenle
Okay, I built glew myself. It's funny, VS2012 chokes on the copyright text in the glew.rc file.
Got it compiled though, and added its headers and libraries to the project.
Upon compiling vegastrike, I still get the original two errors.
Code: Select all
Error 1182 error C2065: 'GL_TEXTURE_CUBE_MAP_SEAMLESS' : undeclared identifier C:\games\vegastrike\svn\vegastrike\src\gldrv\gl_init.cpp 687 1 vegastrike
Error 1552 error C2664: 'aligned_allocator<T>::aligned_allocator(const aligned_allocator<T> &) throw()' : cannot convert parameter 1 from 'std::_Wrap_alloc<_Alloc>' to 'const aligned_allocator<T> &' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\vector 1102 1 vegastrike
That didn't solve the problem.
Re: Compiling errors - svn13654 - VS2012express
Posted: Mon Sep 02, 2013 8:19 am
by pheonixstorm
klauss did anything get added as a preprocessor define in the cmake file? I haven't checked, could be whats blocking things on this side. Then again.. who knows. I should be able to look into it late tomorrow though I hope.
Re: Compiling errors - svn13654 - VS2012express
Posted: Mon Sep 02, 2013 6:37 pm
by klauss
pheonixstorm wrote:klauss did anything get added as a preprocessor define in the cmake file? I haven't checked, could be whats blocking things on this side. Then again.. who knows. I should be able to look into it late tomorrow though I hope.
Nope. That define (GL_TEXTURE_CUBE_MAP_SEAMLESS) should be defined by a
standard ARB extension.
In general, when the extension is missing (and hence the define),
you should be able to define it in win32-wrapped code as defined by
the extension specs.
Re: Compiling errors - svn13654 - VS2012express
Posted: Wed Sep 04, 2013 7:52 pm
by pheonixstorm
Thanks for the link klauss. We just needed to update the glext.h file. No need for glew
Will commit changes to svn in a few minutes.
Re: Compiling errors - svn13654 - VS2012express
Posted: Wed Sep 04, 2013 8:12 pm
by pheonixstorm
So it compiles but doesn't get very far when you run it... Will update the glext.h file and see who else has issues or can find a fix. No usable errors in stderr or stdout
Re: Compiling errors - svn13654 - VS2012express
Posted: Thu Sep 05, 2013 2:43 am
by shenle
The first error is solved. However the second one persists. I still don't get the compile to succeed.
Code: Select all
Error 1556 error C2664: 'aligned_allocator<T>::aligned_allocator(const aligned_allocator<T> &) throw()' : cannot convert parameter 1 from 'std::_Wrap_alloc<_Alloc>' to 'const aligned_allocator<T> &' C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\vector 1102 1 vegastrike
Re: Compiling errors - svn13654 - VS2012express
Posted: Thu Sep 05, 2013 3:14 am
by pheonixstorm
Guess there is something a little different between the two sln files. Can you zip up the sln and project files?
Re: Compiling errors - svn13654 - VS2012express
Posted: Thu Sep 05, 2013 3:27 am
by shenle
pheonixstorm wrote:Guess there is something a little different between the two sln files. Can you zip up the sln and project files?
See attached. To import them in VS2012, I used its automatic converter.
Re: Compiling errors - svn13654 - VS2012express
Posted: Thu Sep 05, 2013 4:47 am
by pheonixstorm
Another question. Which version of the win sdk are you using?
Re: Compiling errors - svn13654 - VS2012express
Posted: Thu Sep 05, 2013 4:54 am
by shenle
pheonixstorm wrote:Another question. Which version of the win sdk are you using?
I use what came with VS2012. It was good enough to compile Vegastrike until recently. I didn't install any separate SDKs.
(edit) It looks like it installs v.7.1a