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

pkg_config Requires: field is missing QT Version, rendering it unusable.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.1
    • 5.0.0
    • Build tools: qmake
    • None
    • f329dccb797bcbb45bb5fbf7e9234279454d6d1e

    Description

      If you compile Qt from source, the 'Requires:' field in the pkg_config files (.pc) is lacking the Qt version:

      lib/pkgconfig$ grep -E "Requires:.*Qt" *
      Qt5CLucene.pc:Requires: QtCore
      Qt5Designer.pc:Requires: QtXml
      Qt5DesignerComponents.pc:Requires: QtCore QtDesigner QtGui QtXml
      Qt5Help.pc:Requires: QtGui QtWidgets
      Qt5Multimedia.pc:Requires: QtNetwork QtGui
      Qt5MultimediaQuick_p.pc:Requires: QtCore QtQuick
      Qt5MultimediaWidgets.pc:Requires: QtCore QtGui
      Qt5Qml.pc:Requires: QtNetwork
      Qt5QmlDevTools.pc:Requires: QtCore
      Qt5QuickTest.pc:Requires: QtCore
      Qt5UiTools.pc:Requires: QtCore
      Qt5WebKit.pc:Requires: QtCore QtGui QtNetwork QtWidgets QtCore QtGui QtNetwork
      Qt5WebKitWidgets.pc:Requires: QtCore QtGui QtNetwork QtWidgets
      Qt5XmlPatterns.pc:Requires: QtNetwork

      Should be Qt5Network instead of QtNetwork, note the missing 5 (MAJOR_VERSION).

      This is generated in the file:
      qtbase/mkspecs/features/qt_module.prf:208

      https://qt.gitorious.org/qt/qtbase/blobs/stable/mkspecs/features/qt_module.prf#line209

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            nunosalmeida Nuno Sucena Almeida
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes