(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.Controls
is imported and it's caused by0xC0000005
onEditor
orPreview
orRender
.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.conf
files inmkspecs
folder. I ran this MSVC script to make MSVC Static build and after unzipping QtBase I modifiedqmake.conf
inmkspecs/winrt-x64-msvc2019
and inmkspecs/win32-msvc
.
QMAKE_LFLAGS += -static QMAKE_CFLAGS_RELEASE -= -O2 QMAKE_CFLAGS_RELEASE += -Os DEFINES += QT_STATIC_BUILD
- Then the
qt setup
andqt build
command, when build is finished I modified the (THIS TIME IN PREFIX LOCATION / LOCATION WHERE QT STATIC IS INSTALLED)qmake.conf
inmkspecs/winrt-x64-msvc2019
and inmkspecs/win32-msvc
CONFIG += static
- Run Qt Creator and the Designer is fine.