Re: [cmake-developers] CMake build with static crt and static QtDialog not linking

2018-02-20 Thread Egor Pugin
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

Re: [cmake-developers] CMake build with static crt and static QtDialog not linking

2018-02-16 Thread Stuermer, Michael SP/HZA-ZSEP
> > 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 "". > >

Re: [cmake-developers] CMake build with static crt and static QtDialog not linking

2018-02-16 Thread Brad King
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

Re: [cmake-developers] CMake build with static crt and static QtDialog not linking

2018-02-16 Thread Stuermer, Michael SP/HZA-ZSEP
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

Re: [cmake-developers] CMake build with static crt and static QtDialog not linking

2018-02-13 Thread David Cole via cmake-developers
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

Re: [cmake-developers] CMake build with static crt and static QtDialog not linking

2018-02-13 Thread Brad King
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