Page 1 of 1

Build with MS Visual Studio Express 2013

Posted: Sun Sep 14, 2014 10:30 pm
by diem389
My QT version is the latest, 5.3. and MS VS Express is 2013. When I tried to build CloudCompare, I met following errors.

6>------ Build started: Project: QCC_DB_LIB, Configuration: Debug x64 ------
6> cc2DLabel.cpp
6>D:\Qt\5.3\msvc2013_64\include\QtANGLE\GLES2/gl2.h(96): warning C4005: 'GL_BLEND_EQUATION_RGB' : macro redefinition
6> F:\Work\Project-CloudCompare\trunk-cc\libs\Glew\include\GL/glew.h(1707) : see previous definition of 'GL_BLEND_EQUATION_RGB'
6>D:\Qt\5.3\msvc2013_64\include\QtANGLE\GLES2/gl2.h(474): error C2365: '__glewActiveTexture' : redefinition; previous definition was 'data variable'
6> F:\Work\Project-CloudCompare\trunk-cc\libs\Glew\include\GL/glew.h(14274) : see declaration of '__glewActiveTexture'
6>D:\Qt\5.3\msvc2013_64\include\QtANGLE\GLES2/gl2.h(475): error C2365: '__glewAttachShader' : redefinition; previous definition was 'data variable'
6> F:\Work\Project-CloudCompare\trunk-cc\libs\Glew\include\GL/glew.h(14389) : see declaration of '__glewAttachShader'
6>D:\Qt\5.3\msvc2013_64\include\QtANGLE\GLES2/gl2.h(476): error C2365: '__glewBindAttribLocation' : redefinition; previous definition was 'data variable'
6> F:\Work\Project-CloudCompare\trunk-cc\libs\Glew\include\GL/glew.h(14390) : see declaration of '__glewBindAttribLocation'

Does anyone know why these errors happen? My cmake version is also latest one, 3.1. I deselected any other option before generating building files.
Thanks.

Re: Build with MS Visual Studio Express 2013

Posted: Mon Sep 15, 2014 7:13 am
by daniel
I think the issue comes from Qt Angle. You should use Qt with OpenGL instead.

See http://qt-project.org/wiki/Qt-5-on-Wind ... and-OpenGL

Re: Build with MS Visual Studio Express 2013

Posted: Wed Sep 17, 2014 6:43 am
by diem389
Thanks to Daniel, I found Qt5 version supporting OpenGL. For the beginners of QT like me, I attached the captured images.
Just find additional downloads, and download Qt 5.3.2 for windows 64-bit(VS2013, OpenGL,...)
Thanks.
image 001.png
image 001.png (58.7 KiB) Viewed 6419 times
image 002.png
image 002.png (32.38 KiB) Viewed 6419 times

Re: Build with MS Visual Studio Express 2013

Posted: Wed Sep 17, 2014 7:19 am
by daniel
Thanks, I've updated the compilation instructions on the wiki as well!