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

Unable to build Qt5 with system zlib, libjpeg and libpng

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.12.3, 5.13.0 Alpha 1
    • Build System
    • None
    • Linux/Wayland, Linux/X11, Linux/Other display system

    Description

      I can't build 5.12 and 5.13 with armhf linaro toolchain: the build system can't find some of installed libraries - zlib, libjpeg, libpng, etc. All of them are located in ${SYSROOT_DIR}/usr/lib/arm-linux-gnueabihf/ directory.

      I can successfully build 5.11  with the same configuration.

       

      Here is the error: 

      ==============================================

      Checking for zlib...
      Trying source 0 (type inline) of library zlib ...
      => source failed condition 'config.msvc'.
      Trying source 1 (type inline) of library zlib ...
      => source failed condition 'config.msvc'.
      Trying source 2 (type inline) of library zlib ...
      None of [libz.so libz.a] found in [] and global paths.
      => source produced no result.
      Trying source 3 (type inline) of library zlib ...
      => source failed condition 'config.wasm'.
      test config.qtbase.libraries.zlib FAILED

       Checking for Zstandard...
      Trying source 0 (type pkgConfig) of library zstd ...
      + PKG_CONFIG_SYSROOT_DIR=/home/sergey/Projects/orpaltech/boards/bananapi-m2m/sysroot PKG_CONFIG_LIBDIR=/home/sergey/Projects/orpaltech/boards/bananapi-m2m/sysroot/usr/lib/pkgconfig:/home/sergey/Projects/orpaltech/boards/bananapi-m2m/sysroot/usr/share/pkgconfig:/home/sergey/Projects/orpaltech/boards/bananapi-m2m/sysroot/usr/lib/arm-linux-gnueabihf/pkgconfig /usr/bin/pkg-config --exists --silence-errors libzstd '>=' 1.3
      pkg-config did not find package.
      => source produced no result.
      Trying source 1 (type inline) of library zstd ...
      None of [libzstd.so libzstd.a] found in [] and global paths.
      => source produced no result.
      test config.qtbase.libraries.zstd FAILED
      Checking for clock_gettime()...
      Trying source 0 (type inline) of library librt ...
      unistd.h not found in [] and global paths.
      time.h not found in [] and global paths.
      => source produced no result.
      Trying source 1 (type inline) of library librt ...
      None of [librt.so librt.a] found in [] and global paths.
      => source produced no result.
      test config.qtbase_corelib.libraries.librt FAILED

       

      Here is the configuration:

      ===============================================

       ${QTBASE_SRC_DIR}/configure -v \
      -silent \
      -release \
      -opensource -confirm-license \
      -device $QT5_DEVICE_CONFIG \
      -device-option CROSS_COMPILE=$CROSS_COMPILE \
      -sysroot $SYSROOT_DIR \
      -hostprefix $QT5_HOST_PREFIX \
      -extprefix $QT5_EXT_PREFIX \
      -make libs \
      -nomake examples \
      -nomake tests \
      -no-pch \
      -no-use-gold-linker \
      -no-xcb \
      $QT5_OPENGL_OPTION \
      -no-openssl \
      -system-zlib \

      -system-libjpeg \
      -system-libpng \
      -system-freetype \
      -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql \
      -no-sql-tds -no-sql-sqlite -no-sql-sqlite2

       

      ===============================================

      I have attached my device config too.

       

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            ssuloev Sergey Suloev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes