# windows MinGW compiler question with Qt and VTK

**URL:** https://discourse.vtk.org/t/windows-mingw-compiler-question-with-qt-and-vtk/7973
**Category:** Support
**Created:** [March 4, 2022, 2:38am UTC](https://discourse.vtk.org/t/windows-mingw-compiler-question-with-qt-and-vtk/7973 "2022-03-04T02:38:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![S-Explorer](https://discourse.vtk.org/user_avatar/discourse.vtk.org/s-explorer/32/4783_2.png) [@S-Explorer](https://discourse.vtk.org/u/S-Explorer)
#### Post date: [March 4, 2022, 2:38am UTC](https://discourse.vtk.org/t/windows-mingw-compiler-question-with-qt-and-vtk/7973/1 "2022-03-04T02:38:24Z")

</div>

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

> edtion:
> 
> - qt:6.2.3
> - vtk:9.1.0

 ![image](https://discourse.vtk.org/uploads/default/original/2X/9/96525cbbf641c5331ae82219e0e7b988c7b47150.png)

### 1.

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.

### 2.

i have the same question with [this post](https://gitlab.kitware.com/vtk/vtk/-/issues/18219),but i still can’t solver this question.

```auto
[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**

---

<div class="post-metadata">

### Author: ![S-Explorer](https://discourse.vtk.org/user_avatar/discourse.vtk.org/s-explorer/32/4783_2.png) [@S-Explorer](https://discourse.vtk.org/u/S-Explorer)
#### Post date: [March 4, 2022, 7:28am UTC](https://discourse.vtk.org/t/windows-mingw-compiler-question-with-qt-and-vtk/7973/2 "2022-03-04T07:28:39Z")

</div>

### update

I’m using **msvc** for development now.

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