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

qmake: pkg-config checks with link_pkgconfig don't fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.0
    • 4.6.3
    • Build tools: qmake
    • None
    • 145c6bdef2680ca0da07f8f0cf09419edf9ecd52

    Description

      When using link_pkgconfig to depend on a library, like so:

      CONFIG += link_pkgconfig
      PKGCONFIG += somelibrary

      qmake does not fail if the library is not found (if the .pc file does not exist). So we just see a compilation error when the header can't be found. It should fail as soon as the depencency can't be found.

      In the unusual case, some projects might want to ifdef their code depending on whether the dependency existed, but that's not the common case, and I don't see any way to detect it in code when using qmake anyway.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            murrayc Murray Cumming
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes