diff --git a/doc/build-windows.md b/doc/build-windows.md --- a/doc/build-windows.md +++ b/doc/build-windows.md @@ -114,7 +114,7 @@ make HOST=x86_64-w64-mingw32 cd .. ./autogen.sh # not required when building from tarball - CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/ + CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/ --prefix=/ --with-seeder=false # seeder not supported in Windows yet make ## Building for 32-bit Windows @@ -142,7 +142,7 @@ make HOST=i686-w64-mingw32 cd .. ./autogen.sh # not required when building from tarball - CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure --prefix=/ + CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure --prefix=/ --prefix=/ --with-seeder=false # seeder not supported in Windows yet make ## Depends system diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp --- a/src/qt/test/test_main.cpp +++ b/src/qt/test/test_main.cpp @@ -61,7 +61,12 @@ // Prefer the "minimal" platform for the test instead of the normal default // platform ("xcb", "windows", or "cocoa") so tests can't unintentially // interfere with any background GUIs and don't require extra resources. + +#if defined(WIN32) + _putenv_s("QT_QPA_PLATFORM", "minimal"); +#else setenv("QT_QPA_PLATFORM", "minimal", 0); +#endif // Don't remove this, it's needed to access // QApplication:: and QCoreApplication:: in the tests