VTK 9.1 build Fail With Qt 6.2.1
When Compile VTK 9.1.0 With Qt 6.2.1,I get this error message:
qmlplugindump is deprecated.
Please declare your types using QML_ELEMENT and related macros.
Then utilize the build system to invoke qmltyperegistrar in order to
generate qmltypes files.
QQmlComponent: Component is not ready
file:///D:/SourceCode/VTK/build/lib/qml/typelist.qml:3:1: module "VTK" plugin "qmlvtkplugin" not found
mingw32-make[2]: *** [Imaging\GUISupport\QtQuick\qml\CMakeFiles\qmlvtkplugin.dir\build.make:149: lib/qml/VTK.9.1/libqmlvtkplugin.dll] Error 3
mingw32-make[2]: *** Deleting file 'lib/qml/VTK.9.1/libqmlvtkplugin.dll'
mingw32-make[1]: *** [CMakeFiles\Makefile2:17595: Imaging/GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/all] Error 2
My Build Environment is:
OS: Windows 10
GCC:11.2(Mingw64)
Qt:6.2.1
Cmake:3.21.3