(Static kit only) Qt Quick emulation layer crashed with QtQuick.Controls imported
-
Hey, I had to install Qt again (SSD just died) and I got problem -
Line 1: Qt Quick emulation layer crashed.. Im using the exact version of Qt Creator as before (6.0.2) and the same version of Qt as before (5.15.2). On the previous SSD everything was fine. I did some tests and I see it's crashing only whenQtQuick.Controlsis imported and it's caused by0xC0000005onEditororPrevieworRender.Im using this script to install static Qt.
Non-static from this script is fine.
-
Fixed. I did this by doing those steps:
- In maintenance tool I downloaded Mingw64 and Mingw64 for 5.15.2 and for "Tools".
- I did an static mingw build using this powershell script: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW
- I saw that the script is changing
qmake.conffiles inmkspecsfolder. I ran this MSVC script to make MSVC Static build and after unzipping QtBase I modifiedqmake.confinmkspecs/winrt-x64-msvc2019and inmkspecs/win32-msvc.
QMAKE_LFLAGS += -static QMAKE_CFLAGS_RELEASE -= -O2 QMAKE_CFLAGS_RELEASE += -Os DEFINES += QT_STATIC_BUILD- Then the
qt setupandqt buildcommand, when build is finished I modified the (THIS TIME IN PREFIX LOCATION / LOCATION WHERE QT STATIC IS INSTALLED)qmake.confinmkspecs/winrt-x64-msvc2019and inmkspecs/win32-msvc
CONFIG += static- Run Qt Creator and the Designer is fine.