<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">Norbert Pfeiler wrote:<br></span><span style="font-size:12.8000001907349px">> Currently you have to define »QT_STATIC«</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">You shouldn't need to do this. If you use MSYS2's<br></span><span style="font-size:12.8000001907349px">mingw-w64-{i686,x86_64}-qt5-</span><span style="font-size:12.8000001907349px">static then that will be defined for you.</span></blockquote><div><br></div><div>I have both *-qt5 (for dev) and *-qt5-static (for deploy) installed and append the root of qt5-static to CMAKE_PREFIX_PATH for cmake to prefer the static to the shared version. </div><div>QT_STATIC is not defined in this case. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">Norbert Pfeiler wrote:</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">> For Windows it’s like this:<br></span><span style="font-size:12.8000001907349px">><br></span><span style="font-size:12.8000001907349px">> #if defined(Q_OS_WIN) && defined(QT_STATIC)<br></span><span style="font-size:12.8000001907349px">> #include <QtPlugin><br></span><span style="font-size:12.8000001907349px">> Q_IMPORT_PLUGIN(</span><span style="font-size:12.8000001907349px">QWindowsIntegrationPlugin)<br></span><span style="font-size:12.8000001907349px">> #endif</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Again, if you use MSYS2's mingw-w64-{i686,x86_64}-cmake then you<br></span><span style="font-size:12.8000001907349px">should not need to do this either, because of</span></blockquote><div><br></div><div>This is also not the case in the configuration above. </div><div>I don’t have to explicitly link the platform plugin though (after adding Q_IMPORT_PLUGIN). </div><div><br></div><div>These 2 additions are way less of a hassle than having to rename *.lib to *.a in all the qt cmake files and explicitly specifying all transitive qt link deps, which was necessary before. <br></div><div>So thanks for your work. </div><div><br></div><div>Looking forward to: </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">> They should mix fine.</span></blockquote><div><br></div><div>Best, Norbert.  </div></div>