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

CONFIG += serialport breaks build if "LIBS += -framework ..." is used in the same project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.3.0
    • 4.8.5
    • Serial Port
    • None
    • Mac OS X 10.9
    • 4a634dde17361f41b83c92f562714daf8aa51249

    Description

      If you link with a framework via "LIBS += -framework test" and add "CONFIG += serialport" to your project file the "-framework" is removed from the resulting LIBS variable, causing the build to fail.

      The problem is the following line in serialport.prf: "LIBS -= -framework QtSerialPort$${QT_LIBINFIX}" which removes all occurrences of -framework from the list.

      I have added a patch, which fixes the problem.
      If you think this solution is feasible I can push it to gerrit.

      Attachments

        For Gerrit Dashboard: QTBUG-37989
        # Subject Branch Project Status CR V

        Activity

          People

            mkrems Marcel Krems
            mkrems Marcel Krems
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes