Build with MS Visual Studio Express 2013

All about Windows versions
Post Reply
diem389
Posts: 2
Joined: Sun Sep 14, 2014 9:58 pm

Build with MS Visual Studio Express 2013

Post 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.
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Build with MS Visual Studio Express 2013

Post 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
Daniel, CloudCompare admin
diem389
Posts: 2
Joined: Sun Sep 14, 2014 9:58 pm

Re: Build with MS Visual Studio Express 2013

Post 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 6413 times
image 002.png
image 002.png (32.38 KiB) Viewed 6413 times
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Build with MS Visual Studio Express 2013

Post by daniel »

Thanks, I've updated the compilation instructions on the wiki as well!
Daniel, CloudCompare admin
Post Reply