Page 1 of 1

I failed to compile the INSTALL project with VS2022

Posted: Mon Mar 21, 2022 6:46 am
by ustbyzy
Hellow everyone:

Please help me with the following error:

'错误 LNK2001 无法解析的外部符号 "__declspec(dllimport) void __cdecl qt_assert_x(char const *,char const *,char const *,int)" (__imp_?qt_assert_x@@YAXPEBD00H@Z) QCC_DB_LIB J:\Cloudcompare\build\libs\qCC_db\ccSphere.obj 1'

I followed the compilation wiki and used Visual Studio 2022 X86 as the generator.When i compiled the Cloudcompareproject solution,several projects failed such as QCC_DB_LIB/QCC_GL_LIB/QCC_IO_LIB,etc.I followed the tutorials from viewtopic.php?t=992,but it also failed.How do i solve this?

I have the following spec:
source code:CloudCompare-2.11.2
- Windows 10 64bit
- MS Visual Studio 2022 X86
- Qt x86-5.14.2
- CMake 3.22.0-rc2
QQ截图20220319113358.png
QQ截图20220319113358.png (243.44 KiB) Viewed 555 times
QQ截图20220319113358.png
QQ截图20220319113358.png (243.44 KiB) Viewed 555 times

Re: I failed to compile the INSTALL project with VS2022

Posted: Tue Mar 22, 2022 11:16 am
by daniel
As replied by email, make sure you use 64bits versions of Qt and the compiler. 32bits architecture is not supported.