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

qmake qml_plugin doesn't choose the right installation path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P1: Critical P1: Critical
    • None
    • 6.2.6, 6.5.0 Beta3
    • Build tools: qmake
    • None

      Some old QML modules that haven't been ported to cmake yet are no longer installable, because .pro syntax like this will now try to install to the root directory:

      CXX_MODULE = qml
      TARGET  = examplehelper
      TARGETPATH=Qt/labs/presentation/helper
      IMPORT_VERSION = 1.0
      
      QT += quickSOURCES += plugin.cpp pointingfilter.cpp syntaxhighlighter.cpp qmlhighlighter.cpp
      HEADERS += examplehelper.h pointingfilter.h syntaxhighlighter.h qmlhighlighter.h
      
      load(qml_plugin)
      

      As a workaround I can set

       MODULE_BASE_OUTDIR=$$[QT_INSTALL_QML]
      

      but should not need to do that.

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

            qtbuildsystem Qt Build System Team
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes