Problem for compiling CloudCompare

Questions related to plugins development
Post Reply
Lucien
Posts: 37
Joined: Wed Jun 08, 2016 7:51 am

Problem for compiling CloudCompare

Post by Lucien »

Hello,
Capture01.JPG
Capture01.JPG (115.51 KiB) Viewed 7934 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 7934 times
I used Qt5.7 vs2012 and CC2.7. It's caused by their incompatibility.
Thank you in advance for your response
Lucien
Posts: 37
Joined: Wed Jun 08, 2016 7:51 am

Re: Problem for compiling CloudCompare

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

Re: Problem for compiling CloudCompare

Post 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?
Daniel, CloudCompare admin
Lucien
Posts: 37
Joined: Wed Jun 08, 2016 7:51 am

Re: Problem for compiling CloudCompare

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

Re: Problem for compiling CloudCompare

Post 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"))
{
   ...
}
Daniel, CloudCompare admin
Lucien
Posts: 37
Joined: Wed Jun 08, 2016 7:51 am

Re: Problem for compiling CloudCompare

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

Re: Problem for compiling CloudCompare

Post 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
Daniel, CloudCompare admin
Lucien
Posts: 37
Joined: Wed Jun 08, 2016 7:51 am

Re: Problem for compiling CloudCompare

Post by Lucien »

Thank you very much daniel. It works with another version of Qt(5.4).
Post Reply