windows MinGW compiler question with Qt and VTK

About the problem of minGW compiler on windows (Qt & VTK)


  • qt:6.2.3
  • vtk:9.1.0


in the begin choose the button BUILD_SHARED_LIBS ,when i start compiling, which will generate a lot of inline function errors, and erro for a while because of compiling the dll file, but if I cancel the generation of the dynamic library, the compilation process is fine.


i have the same question with this post,but i still can’t solver this question.

[100%] Linking CXX shared module ..\..\..\lib\qml\VTK.9.1\libqmlvtkplugin.dll
Generating qmltypes file using qmlplugindump
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:/VTK/binaries_build/lib/qml/typelist.qml:3:1: module "VTK" plugin "qmlvtkplugin" not found
mingw32-make[2]: *** [GUISupport\QtQuick\qml\CMakeFiles\qmlvtkplugin.dir\build.make:188: 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:12685: GUISupport/QtQuick/qml/CMakeFiles/qmlvtkplugin.dir/all] Error 2
mingw32-make: *** [Makefile:135: all] Error 2

i’m so Puzzled


I’m using msvc for development now.

but I’m still hoping there’s a solution so that help for cross-platform development.