Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. (Static kit only) Qt Quick emulation layer crashed with QtQuick.Controls imported
Forum Updated to NodeBB v4.3 + New Features

(Static kit only) Qt Quick emulation layer crashed with QtQuick.Controls imported

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 329 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BD9a
    wrote on last edited by
    #1

    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 when QtQuick.Controls is imported and it's caused by 0xC0000005 on Editor or Preview or Render.

    Im using this script to install static Qt.

    Non-static from this script is fine.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BD9a
      wrote on last edited by BD9a
      #2

      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 in mkspecs folder. I ran this MSVC script to make MSVC Static build and after unzipping QtBase I modified qmake.conf in mkspecs/winrt-x64-msvc2019 and in mkspecs/win32-msvc.
      QMAKE_LFLAGS += -static
      QMAKE_CFLAGS_RELEASE -= -O2
      QMAKE_CFLAGS_RELEASE += -Os
      DEFINES += QT_STATIC_BUILD
      
      • Then the qt setup and qt build command, when build is finished I modified the (THIS TIME IN PREFIX LOCATION / LOCATION WHERE QT STATIC IS INSTALLED) qmake.conf in mkspecs/winrt-x64-msvc2019 and in mkspecs/win32-msvc
      CONFIG += static
      
      • Run Qt Creator and the Designer is fine.
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved