Hello,
I have compiled successfully CC. But when i generate the project "CloudCompareProjects.sln". I have a lot of errors
I used Qt5.7 vs2012 and CC2.7. It's caused by their incompatibility.
Thank you in advance for your response
Problem for compiling CloudCompare
Re: Problem for compiling CloudCompare
I changed the version of CC(2.6.3.1) and Qt(4.86) and I had fewer errors
Re: Problem for compiling CloudCompare
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?
And for the second case: hard to tell... can you post the console log instead?
Daniel, CloudCompare admin
Re: Problem for compiling CloudCompare
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
Oh, it's for the GL_KHR_debug extension, it's not important at all.
You can comment the whole section:
You can comment the whole section:
Code: Select all
if (ccFBOUtils::CheckExtension("GL_KHR_debug"))
{
...
}
Daniel, CloudCompare admin
Re: Problem for compiling CloudCompare
1>------ Début de la génération : Projet : CloudCompare, Configuration : Debug Win32 ------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")) { ... }
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
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
_MSC_VER 1600 = Visual 2010
_MSC_VER 1700 = Visual 2012
Daniel, CloudCompare admin
Re: Problem for compiling CloudCompare
Thank you very much daniel. It works with another version of Qt(5.4).