<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt WebAssembly 6.2 - compiling an app using qmake]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am trying to compile a Qt app for WebAssembly with Qt version 6.2 using CMake.</p>
<p dir="auto">Quote from CMakeLists.txt :</p>
<pre><code>message("CMAKE_PREFIX_PATH : ${CMAKE_PREFIX_PATH}")
find_package(Qt6 REQUIRED COMPONENTS
	  Core
	  Gui
	  Quick
	  )
</code></pre>
<p dir="auto">It fails with this error :</p>
<pre><code>CMAKE_PREFIX_PATH : /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake;/Users/myUsername/Qt/6.2.0/wasm_32
...
CMake Warning at /usr/local/Cellar/cmake/3.21.3/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  Found package configuration file:

    /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake

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

  The following imported targets are referenced, but are missing:
  Qt6::qtquicktemplates2plugin

Call Stack (most recent call first):
  /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:14 (find_dependency)
  /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:91 (_qt_internal_find_dependencies)
  /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:40 (include)
  /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6/Qt6Config.cmake:176 (find_package)
  CMakeLists.txt:31 (find_package)


CMake Warning at /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6/Qt6Config.cmake:176 (find_package):
  Found package configuration file:

    /Users/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake

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

  Qt6Quick could not be found because dependency Qt6Qml could not be found.

Call Stack (most recent call first):
  CMakeLists.txt:31 (find_package)


CMake Error at CMakeLists.txt:31 (find_package):
  Found package configuration file:

    /Users/myUsername/Qt/6.2.0/wasm_32/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/myUsername/Qt/6.2.0/wasm_32/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake"
  exists

  



-- Configuring incomplete, errors occurred!
</code></pre>
<p dir="auto">Is building for WebAssembly using CMake supported by Qt 6.2?<br />
Side note : building with qmake is working fine.</p>
]]></description><link>https://forum.qt.io/topic/130690/qt-webassembly-6-2-compiling-an-app-using-qmake</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 23:26:48 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/130690.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Sep 2021 14:53:40 GMT</pubDate><ttl>60</ttl></channel></rss>