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

qmake does not generate 2nd install target in Makefile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.5.1, 5.6.0
    • Build tools: qmake
    • None
    • Windows 7, MSVC++ 2013

    Description

      Modified .pro file to install my custom Qt Designer plugin to Creator directory as well:

      CONFIG      += plugin debug_and_release
      TARGET      = $$qtLibraryTarget(WidgetBoxPlugin)
      TEMPLATE    = lib
      ...
      target.path = $$[QT_INSTALL_PLUGINS]/designer
      creator_target.path = $$[QTCREATOR_BIN_PATH]/plugins/designer
      INSTALLS    += target creator_target
      

      And resulted dll file was copied into 2 paths (targets). Now it does not work for some reason: qmake does not generate install (copy) script for 2nd target (QTCREATOR_BIN_PATH is set). Think it is a bug in qmake or Qt Creator (QTCREATOR_BIN_PATH is set but not passed to qmake).

      Full project: https://github.com/akontsevich/WidgetBox

      Tried to modify .pro file like mentioned here: http://blog.qt.io/blog/2008/04/16/the-power-of-qmake/

      creator_target.name = Copying the target dll to Qt Creator plugins directory as well
      creator_target.input = $$qtLibraryTarget(WidgetBoxPlugin)
      creator_target.path  = $$[QTCREATOR_BIN_PATH]/plugins/designer
      creator_target.CONFIG += target_predeps no_link
      creator_target.output = WidgetBoxPlugin.dll
      QMAKE_EXTRA_COMPILERS += creator_target
      
      INSTALLS += creator_target
      

      Fails also.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            jirauser39314 user-45b5b (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes