Page 1 of 1

QT build question

Posted: Tue Apr 19, 2016 12:59 am
by zhuhaixiong
when I finish cmake with QT,then I try to compile the code by QT5.5.1,but An error occures in the end,it is:
E:\study\CloudCompare\trunk-2.6.2\trunk-2.6.2\libs\qCC_glWindow\ccGLWindow.cpp:605: error: C2664: “void (GLDEBUGPROC,void *)”: cannot convert param1 from“void (__cdecl *)(GLenum,GLenum,GLuint,GLenum,GLsizei,const GLchar *,GLvoid *)”to“GLDEBUGPROC”
then I click on the error message,it turns to this line
605 glDebugMessageCallback(&GLDebugCallback, this);//ccGLWindow.cpp
is there any problem in this line????
I need your help

Re: QT build question

Posted: Tue Apr 19, 2016 1:17 am
by zhuhaixiong
when I chang the param1 to (GLDEBUGPROC)GLDEBUGCALLBACK,it can build successfully
but when I run the generated CloudCompare.exe,after a while
an error Window appears"CloudCompare.exe has stop working",how shoud I do??