I failed to compile the INSTALL project with VS2022

Feel free to ask any question here
Post Reply
ustbyzy
Posts: 1
Joined: Mon Mar 21, 2022 4:52 am

I failed to compile the INSTALL project with VS2022

Post 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 539 times
QQ截图20220319113358.png
QQ截图20220319113358.png (243.44 KiB) Viewed 539 times
Attachments
QQ截图20220320100351.png
QQ截图20220320100351.png (177.73 KiB) Viewed 539 times
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: I failed to compile the INSTALL project with VS2022

Post by daniel »

As replied by email, make sure you use 64bits versions of Qt and the compiler. 32bits architecture is not supported.
Daniel, CloudCompare admin
Post Reply