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. After upgrading to 6.9, I can't even package it, and you just randomly adjust the cmake rules without providing a solution. It's a complete waste of time
Forum Updated to NodeBB v4.3 + New Features

After upgrading to 6.9, I can't even package it, and you just randomly adjust the cmake rules without providing a solution. It's a complete waste of time

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 238 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.
  • H Offline
    H Offline
    huaa
    wrote on last edited by huaa
    #1

    When I call windeployqt.exe, it always reports an error: "qmlimportscanner returned invalid JSON output: illegal value :""
    SO how to fix https://doc.qt.io/qt-6/qt-cmake-policy-qtp0004.html ?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      huaa
      wrote on last edited by
      #2

      I've found a solution. Find the folder with the same name as your Qml module which defined though qt_add_qml_module in the Debug folder ,copy it to the same-level directory as the exe file you want to publish, and then call windeployqyt.

      Hope this helps save some time for those who encounter this baffling error.

      1 Reply Last reply
      0
      • H huaa has marked this topic as solved on

      • Login

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