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

qtbase/cmake produced pkg-config .pc files no longer emit dependencies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7.2, 6.8.0 FF
    • 6.6.3, 6.7.0
    • Build System: CMake
    • None
    • Linux/X11
    • 337cadbcb (dev), ac4920b5c (dev), 062f701a1 (6.7), 5ee9da89a (6.7)

    Description

      To keep it short, Qt6.6.2 gave:

      $ pkgconf --modversion --cflags Qt6Widgets
      6.6.2
      $ pkgconf --cflags Qt6Widgets
      -I/usr/include/qt6/QtWidgets -I/usr/include/qt6 -DQT_WIDGETS_LIB -I/usr/include/qt6/QtGui -DQT_GUI_LIB -I/usr/include/qt6/QtCore -DQT_CORE_LIB -I/usr/lib64/qt6/mkspecs/linux-g++
      

      And then with Qt6.6.3 (or 6.7.0):

      $ pkgconf --modversion Qt6Widgets
      6.6.3
      $ pkgconf --cflags Qt6Widgets
      -I/usr/include/qt6/QtWidgets -I/usr/include/qt6 -DQT_WIDGETS_LIB
      

      I assume this is not intentional? Same happens for others e.g. --cflags Qt6Gui does not show QtCore include path either.

      Was noticed after a bug report to Gentoo about a chromium build failure with the qt6 shim. chromium combines pkgconf's Qt6Core and Qt6Widgets but omits Qt6Gui, which led to an include failure for <QImage> after the include path went missing.

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            ionen Ionen Wolkens
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews