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

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 4.8.5
    • Fix Version/s: 5.3.0
    • Component/s: Serial Port
    • Labels:
      None
    • Environment:
      Mac OS X 10.9

      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

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

          Activity

            People

            Assignee:
            mkrems Marcel Krems
            Reporter:
            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