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

moc does not take pkgconfig cflags into account

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.0
    • 4.7.3
    • Build tools: qmake
    • None
    • 2a1e82452a192c88bcf0250f5976492f6dc3b65f

    Description

      When using pkg-config via

      CONFIG += link_pkgconfig
      PKGCONFIG += pkgconfig-file.pc

      moc does not get the relevant include directories from the pkgconfig file.

      link_pkgconfig only fills up the CFLAGS, CXXFLAGS and LIBS variables, but moc uses DEFINES and INCLUDEPATH.

      Currently something like
      INCLUDEPATH += $$system(pkg-config -cflags pkgconfig-file | tr \' \' \'\\n\' | grep ^-I | cut -d I -f 2)
      is required to fix INCLUDEPATH by hand. It would be great if that could be done by link_pkgconfig automatically (same with DEFINES).

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            jpetersen Jan Arne Petersen (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes