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

qmake fails to create TARGET_plugin_import.cpp and TARGET_qml_plugin_import.cpp when target is lib instead of app and the build of Qt is static

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 2
    • 5.7.0, 5.8.0 Beta
    • Build System
    • None
    • Mac OSX 10.11.5, Qt 5.7 built from source statically.
    • 9576b71fe8c0dea978f4bcbe15526e0e3e643cfd

    Description

      5.7 fixed a lot of problems related with qml module imports with static builds of Qt. These seem to be fixed for app templates but not for lib templates. I have a project that generates a lib with a static build of Qt and qmake doesn't generate TARGET_plugin_import.cpp and TARGET_qml_plugin_import.cpp, therefore I have to manually declare all the plugin imports on the code and initialize them by myself.

      Attachments

        1. Makefile.zip
          61 kB
        2. qt-bug-new-package.zip
          67 kB
        3. template_minimal.zip
          9 kB

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              sinosoidal Nuno Santos
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes