Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Qt Webassembly via conan package manager - "Could NOT find Qt6Quick"
Forum Updated to NodeBB v4.3 + New Features

Qt Webassembly via conan package manager - "Could NOT find Qt6Quick"

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
2 Posts 2 Posters 410 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.
  • J Offline
    J Offline
    just_a_developer
    wrote on last edited by just_a_developer
    #1

    Hello,

    I am following this guide :
    https://www.qt.io/blog/installing-qt-via-conan-package-manager
    specifically this gif : https://www.qt.io/hs-fs/hubfs/conan_demo_app_build.gif?width=1600&name=conan_demo_app_build.gif .

    I am trying to figure out how this process could be used to cross-compile for Qt Webassembly from macOS x86_64.
    Here is the project that I have so far : https://wetransfer.com/downloads/859e405c7241c6fd9353944a9e591ddf20220201114259/cffcaf1de2ba8e3cd57fcfc1c9ff83af20220201114312/e85342 .
    The ./buildWasm.sh is supposed to build the project, but it fails with this error :
    "
    -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
    CMake Error at CMakeLists.txt:15 (find_package):
    Found package configuration file:

    /Users/myUser/.conan/data/qtbase/6.2.2/qt/everywhere/package/5f6084cf36d2dec9c03d119ccdb11027ce3fa5ba/lib/cmake/Qt6/Qt6Config.cmake

    but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
    FOUND. Reason given by package:

    Failed to find Qt component "Quick".

    Expected Config file at
    "/Users/myUser/.conan/data/qtbase/6.2.2/qt/everywhere/package/5f6084cf36d2dec9c03d119ccdb11027ce3fa5ba/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
    does NOT exist
    "

    ...and indeed : QtQuick is in qtdeclarative, and not in qtbase.

    How could I fix this issue?

    jsulmJ 1 Reply Last reply
    0
    • J just_a_developer

      Hello,

      I am following this guide :
      https://www.qt.io/blog/installing-qt-via-conan-package-manager
      specifically this gif : https://www.qt.io/hs-fs/hubfs/conan_demo_app_build.gif?width=1600&name=conan_demo_app_build.gif .

      I am trying to figure out how this process could be used to cross-compile for Qt Webassembly from macOS x86_64.
      Here is the project that I have so far : https://wetransfer.com/downloads/859e405c7241c6fd9353944a9e591ddf20220201114259/cffcaf1de2ba8e3cd57fcfc1c9ff83af20220201114312/e85342 .
      The ./buildWasm.sh is supposed to build the project, but it fails with this error :
      "
      -- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
      CMake Error at CMakeLists.txt:15 (find_package):
      Found package configuration file:

      /Users/myUser/.conan/data/qtbase/6.2.2/qt/everywhere/package/5f6084cf36d2dec9c03d119ccdb11027ce3fa5ba/lib/cmake/Qt6/Qt6Config.cmake

      but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
      FOUND. Reason given by package:

      Failed to find Qt component "Quick".

      Expected Config file at
      "/Users/myUser/.conan/data/qtbase/6.2.2/qt/everywhere/package/5f6084cf36d2dec9c03d119ccdb11027ce3fa5ba/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
      does NOT exist
      "

      ...and indeed : QtQuick is in qtdeclarative, and not in qtbase.

      How could I fix this issue?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @just_a_developer Please do not double post!
      https://forum.qt.io/topic/134001/qt-webassembly-via-conan-package-manager-could-not-find-qt6quick

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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