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

Need official way to use pkg-config, regardless of what Qt's setting was

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.8.0 Alpha
    • Build tools: qmake
    • None
    • MacOS 10.11.6

      I am trying to build my application on the 5.8.0 441 snapshot for MacOS/Android/iOS to check QTBUG-51131, but I believe something has changed in how pkg-config is handled by clang+qmake.

      The way:
      macx:QT_CONFIG -= no-pkg-config
      CONFIG += link_pkgconfig
      PKGCONFIG += sndfile

      has been working on every 5.x release, but not on 5.8.0. The error I've got is:
      Project WARNING: pkg-config disabled, can't check package existence
      Project ERROR: sndfile development package not found

      Doing just PKGCONFIG += sndfile seems to go a bit further but then the sndfile headers cannot be found at build time.

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

            buddenha Oswald Buddenhagen
            mcallegari79 Massimo Callegari
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes