Q6.7.0 and VTK 9.3.0 Windows Visual Studio 2022 link errors

I’m getting Link errors for almost everything related to Qt, even though Qt seemed to build fine (from git open source, branch 6.7.0…)

I have Qt set to 6 and Qt stuff enabled in the CMake Gui, and it finds all the modules … but fails to link. It’s very strange why would it fail to find anything??

“Y:\vtk930.bin\GUISupport\Qt\GUISupportQt.vcxproj” (default target) (560) →
(Link target) →
vtkQtTreeModelAdapter.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl
QString::~QString(void)” (_imp??1QString@@QEAA@XZ) [Y:\vtk930.bin\GUISupport\Qt\GUISupportQt.vcxproj]
mocs_compilation_RelWithDebInfo.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public
: __cdecl QString::~QString(void)” (_imp??1QString@@QEAA@XZ) [Y:\vtk930.bin\GUISupport\Qt\GUISupportQt.vcxpro
j]

Meh never mind. I rebuilt qt 663 instead of 670 and now everthing is ok…

Cosmic Rays perhaps.