Details
-
Task
-
Resolution: Done
-
P2: Important
-
5.14.0 Beta2, 5.14.0
-
Official wasm_32 binaries for 5.14.0-beta2.
-
-
615204e0762c2e12077e8c8dd3c6d29b9648f163 (qt/qtbase/5.14)
Description
I'm experiencing "Qt5::Zlib-NOTFOUND" errors when trying to compile CMake projects against WASM with Qt 5.14.0 Beta2. The same projects build fine with Qt 5.13.1.
The problem might be related to "Qt5QTiffPlugin" (in lib/cmake/Qt5Gui/Qt5Gui_QTiffPlugin.cmake) now depending on Zlib in 5.14.0 Beta2, whereas it did not in 5.13.1. This new dependency is furthermore only present on WASM, and not on Windows. The "Qt5Zlib.a" binary does not seem to be included in the Qt WASM binaries, neither in the official binaries nor when building locally.
Sample project to reproduce: https://github.com/forderud/QtWasm/tree/master/source (use "run_cmake.bat" if you want to use the Docker container). This project does not explicitly depend on "tiff"or zlib in any way.
Build log extract:
-- Configuring done -- Generating done -- Build files have been written to: /project/build Scanning dependencies of target helloworld_autogen [ 6%] Automatic MOC for target helloworld [ 6%] Built target helloworld_autogen CMakeFiles/helloworld.dir/build.make:300: *** target pattern contains no '%'. Stop. make[1]: *** [CMakeFiles/Makefile2:72: CMakeFiles/helloworld.dir/all] Error 2 make: *** [Makefile:84: all] Error 2
Extract from CMakeFiles/helloworld.dir/build.make:
line 298: helloworld.js: /usr/local/Qt-5.14.0/lib/libQt5FontDatabaseSupport.a line 299: helloworld.js: /usr/local/Qt-5.14.0/lib/libQt5EglSupport.a line 300: helloworld.js: Qt5::Zlib-NOTFOUND line 301: helloworld.js: /usr/local/Qt-5.14.0/lib/libQt5EventDispatcherSupport.a line 302: helloworld.js: /usr/local/Qt-5.14.0/lib/libQt5FontDatabaseSupport.a
Attachments
Issue Links
- relates to
-
QTBUG-78473 qtimageformats build failure for WebAssembly
- Closed
For Gerrit Dashboard: QTBUG-79547 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
283494,1 | wasm: fix system zlib detection | 5.14 | qt/qtbase | Status: ABANDONED | -1 | 0 |
296134,2 | Fix linking of header only Qt5Zlib for cmake static builds | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |