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

.pc files don't use -F or --framework for --cflags on OS X

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.0 Alpha
    • 5.2.0 RC1
    • Build System
    • None
    • OS X 10.9
    • macOS
    • 0e844eff19f1174bd5a8f88e8873307ae25cb892

    Description

      If you do

      $ pkg-config --cflags Qt5Widgets

      you get

      -I/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/include/QtWidgets -I/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/include -I/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/include/QtGui -I/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/include -I/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/include/QtCore -I/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/include

      which doesn't treat Qt as a framework.

      If you do

      $ pkg-config --libs Qt5Widgets

      you get

      -F/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/lib -framework QtWidgets -F/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/lib -framework QtGui -F/Users/gharris/Qt5.2.0/5.2.0-rc1/clang_64/lib -framework QtCore

      which does treat it as a framework.

      The same applies for Qt5Core, and probably other components.

      This means that autoconf-based projects (such as Wireshark) don't find the header files when you try to build them.

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              gharris Guy Harris
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes