QOpenGLFunctions_2_1 : I cannot manage to use it

All about Windows versions
Post Reply
gkachaner
Posts: 2
Joined: Mon Mar 19, 2018 9:31 am

QOpenGLFunctions_2_1 : I cannot manage to use it

Post by gkachaner »

Hello everyone,
I am new to cloud compare and trying to use in on visual studio 2017.
I followed the guide on on to compile it but I can't manage to solve my last problem : even if i can include the "QOpenGlFunctions_2_1.h", the build will fail with an "identifier undefined" for the use of QOpenGLFunction_2_1 in the file "ccColorRampShader.h".

Thank you for your help,
Grégoire
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: QOpenGLFunctions_2_1 : I cannot manage to use it

Post by daniel »

What version of Qt are you using? And are you sure Qt is correctly configured in CMake?
Daniel, CloudCompare admin
gkachaner
Posts: 2
Joined: Mon Mar 19, 2018 9:31 am

Re: QOpenGLFunctions_2_1 : I cannot manage to use it

Post by gkachaner »

Okay, i managed to fix the problem.
I completely mixed up the compiler.

Selecting the visual studio 2017 compiler in cmake and "C:\Qt\5.10.0\msvc2015" as my root path for Qt made it work.

Thank you for your fast reply.

Grégoire
daniel
Site Admin
Posts: 7382
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: QOpenGLFunctions_2_1 : I cannot manage to use it

Post by daniel »

Yes, I was going to say that you can't compile CC nor Qt with 32 bits architecture. For Qt I would have chosen the 2017 version as well, but if it works with the 2015 version...
Daniel, CloudCompare admin
Post Reply