Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79547

[REG 5.13-5.14] CMake: Static Qt builds broken (missing Zlib)

    XMLWordPrintable

Details

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kkohne Kai Köhne
              forderud Fredrik Orderud
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes