Page 1 of 1

Problem for compiling CloudCompare

Posted: Thu Jun 09, 2016 2:14 pm
by Lucien
Hello,
Capture01.JPG
Capture01.JPG (115.51 KiB) Viewed 5159 times
I have compiled successfully CC. But when i generate the project "CloudCompareProjects.sln". I have a lot of errors
Capture02.JPG
Capture02.JPG (71.45 KiB) Viewed 5159 times
I used Qt5.7 vs2012 and CC2.7. It's caused by their incompatibility.
Thank you in advance for your response

Re: Problem for compiling CloudCompare

Posted: Thu Jun 09, 2016 3:58 pm
by Lucien
I changed the version of CC(2.6.3.1) and Qt(4.86) and I had fewer errors
Capture03.JPG
Capture03.JPG (41.7 KiB) Viewed 5155 times

Re: Problem for compiling CloudCompare

Posted: Thu Jun 09, 2016 4:28 pm
by daniel
In the first case: you were not linking with Qt for Windows 2012 but for MinGW (see the QT5_ROOT_PATH ;) ). I'm not even sure Qt provides Qt 5.7 for MSVC 2012 anyway... Moreover CC 2.7 requires a C++x11 compatible compiler (i.e. MSVC 2013 or newer).

And for the second case: hard to tell... can you post the console log instead?

Re: Problem for compiling CloudCompare

Posted: Fri Jun 10, 2016 7:03 am
by Lucien
daniel wrote:In the first case: you were not linking with Qt for Windows 2012 but for MinGW (see the QT5_ROOT_PATH ;) ). I'm not even sure Qt provides Qt 5.7 for MSVC 2012 anyway... Moreover CC 2.7 requires a C++x11 compatible compiler (i.e. MSVC 2013 or newer).

And for the second case: hard to tell... can you post the console log instead?



1>------ Début de la génération : Projet : QCC_GL_LIB, Configuration : Debug Win32 ------
1> ccGLWindow.cpp
1>C:\ysong\CloudCompare\trunk-2.6.3.1\libs\qCC_glWindow\ccGLWindow.cpp(869): error C2664: 'void (GLDEBUGPROC,void *)' : impossible de convertir le paramètre 1 de 'void (__cdecl *)(GLenum,GLenum,GLuint,GLenum,GLsizei,const GLchar *,GLvoid *)' en 'GLDEBUGPROC'
1> Cette conversion requiert reinterpret_cast, un cast de style C ou un cast de style fonction
2>------ Début de la génération : Projet : CloudCompare, Configuration : Debug Win32 ------
3>------ Début de la génération : Projet : ccViewer, Configuration : Debug Win32 ------
3>LINK : fatal error LNK1104: impossible d'ouvrir le fichier '..\libs\qCC_glWindow\Debug\QCC_GL_LIBd.lib'
2>LINK : fatal error LNK1104: impossible d'ouvrir le fichier '..\libs\qCC_glWindow\Debug\QCC_GL_LIBd.lib'
========== Génération : 0 a réussi, 3 a échoué, 9 mis à jour, 0 a été ignoré ==========

It's this that you want? Thank you so much

Re: Problem for compiling CloudCompare

Posted: Fri Jun 10, 2016 7:28 am
by daniel
Oh, it's for the GL_KHR_debug extension, it's not important at all.

You can comment the whole section:

Code: Select all

if (ccFBOUtils::CheckExtension("GL_KHR_debug"))
{
   ...
}

Re: Problem for compiling CloudCompare

Posted: Fri Jun 10, 2016 9:26 am
by Lucien
daniel wrote:Oh, it's for the GL_KHR_debug extension, it's not important at all.

You can comment the whole section:

Code: Select all

if (ccFBOUtils::CheckExtension("GL_KHR_debug"))
{
   ...
}
1>------ Début de la génération : Projet : CloudCompare, Configuration : Debug Win32 ------
2>------ Début de la génération : Projet : ccViewer, Configuration : Debug Win32 ------
2>qtmaind.lib(qtmain_win.obj) : error LNK2038: discordance détectée pour '_MSC_VER' : la valeur '1600' ne correspond pas à la valeur '1700' in ccviewer.obj
1>qtmaind.lib(qtmain_win.obj) : error LNK2038: discordance détectée pour '_MSC_VER' : la valeur '1600' ne correspond pas à la valeur '1700' in cc2.5DimEditor.obj
2>C:\ysong\CloudCompare\trunk-2.6.3.1\build\ccViewer\Debug\ccViewer.exe : fatal error LNK1319: 1 discordances détectées
1>C:\ysong\CloudCompare\trunk-2.6.3.1\build\qCC\Debug\CloudCompare.exe : fatal error LNK1319: 1 discordances détectées
========== Génération : 0 a réussi, 2 a échoué, 10 mis à jour, 0 a été ignoré ==========

The last problem is solved, but a new one arises. I am sorry to disturb you.

Re: Problem for compiling CloudCompare

Posted: Fri Jun 10, 2016 9:34 am
by daniel
Apparently you still don't use the right version of Qt ;). Check your CMake configuration again.

_MSC_VER 1600 = Visual 2010
_MSC_VER 1700 = Visual 2012

Re: Problem for compiling CloudCompare

Posted: Mon Jun 13, 2016 7:31 am
by Lucien
Thank you very much daniel. It works with another version of Qt(5.4).