Page 1 of 1

QOpenGLFunctions_2_1 : I cannot manage to use it

Posted: Mon Mar 19, 2018 10:13 am
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

Re: QOpenGLFunctions_2_1 : I cannot manage to use it

Posted: Mon Mar 19, 2018 11:02 am
by daniel
What version of Qt are you using? And are you sure Qt is correctly configured in CMake?

Re: QOpenGLFunctions_2_1 : I cannot manage to use it

Posted: Mon Mar 19, 2018 5:13 pm
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

Re: QOpenGLFunctions_2_1 : I cannot manage to use it

Posted: Mon Mar 19, 2018 6:47 pm
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...