Hi Michael,
Be aware of VS2017 issues with variables initialization during static
build (in Qt in particular).
See for more info:
https://developercommunity.visualstudio.com/content/problem/76198/vs-2017-compiler-creates-broken-debug-build-using.html
https://bugreports.qt.io/browse/QTBUG-66140
S
>
> On 2/16/2018 7:43 AM, Stuermer, Michael SP/HZA-ZSEP wrote:
> > 1) The debug version crashes in
>
> I don't know if we've ever built a debug configuration against this Qt.
>
> > This application failed to start because it could not find or load the
> > Qt platform plugin "windows" in "".
>
>
On 2/16/2018 7:43 AM, Stuermer, Michael SP/HZA-ZSEP wrote:
> 1) The debug version crashes in
I don't know if we've ever built a debug configuration against this Qt.
> This application failed to start because it could not find or load
> the Qt platform plugin "windows" in "".
We statically link t
nstall
directory afterwards.
-Ursprüngliche Nachricht-
Von: Brad King [mailto:brad.k...@kitware.com]
Gesendet: Dienstag, 13. Februar 2018 18:11
An: Stuermer, Michael SP/HZA-ZSEP
Cc: cmake-developers@cmake.org
Betreff: Re: [cmake-developers] CMake build with static crt and static QtDialog
not
I had a project where I had to do this in the main.cpp file to get it
to link with static Qt on Windows:
#ifdef _WIN32
#ifdef QT_STATIC
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
#endif
#endif
Those unresolved externals you posted look familiar... Does this fix it?
HTH,
Davi
On 2/13/2018 11:28 AM, Stuermer, Michael SP/HZA-ZSEP wrote:
> I try to do a CMake build with static C runtime and a static Qt 5.10.0
Make sure Qt is configured with both `-static` and `-static-runtime`,
and that it is built with the same compiler as CMake. See the command
used below to configure