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

"qtLibraryTarget" output changed from Qt 5.3.2 to Qt 5.4.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.2
    • 5.4.0
    • Build tools: qmake
    • None
    • Windows 7 64-bit, Qt 5.4.0, QtCreator 3.3.0
    • 67289d0dfa64bf805c7ff2e455611affaea28558

      "qtLibraryTarget" output generation seems to have changed from Qt5.3.x to Qt 5.4.0 in that it now automatically adds a "5" to any TARGET value that starts with "Qt"

      In other words, in my QML plugin .pro, I have the following code:

      TEMPLATE = lib
      TARGET = QtQmlComponents
      QT += qml quick
      CONFIG += qt plugin
      
      TARGET = $$qtLibraryTarget($$TARGET)
      

      Which, for 5.3.x gave me "QtQmlComponents.dll" (on Windows obviously), but for 5.4 now gives me "Qt5QmlComponents.dll".

      This breaks QML plugin imports since the dll name now no longer matches the plugin name.

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

            buddenha Oswald Buddenhagen
            goblincoding William Hallatt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes