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

qmltc and relocatable qt builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.3.0
    • Fix Version/s: 6.4
    • Component/s: QML: Compiler

      Description

      i'm trying to use the qml type compiler with statically linked qt. my typical workflow is to:

      build qt:

      • build qt on the build server
      • create a tarball of the folder (after ninja install)
      • deploy qt to an artifact storage

      use qt:

      • download qt from the artifact storage and extract
      • use set the cmake prefix path to the location where qt is extracted to

      when using qmltc, i'm now getting the following error:
      ```
      Warning: Failed to find the following builtins: builtins.qmltypes, jsroot.qmltypes (so will use qrc). Import paths used:
      /Volumes/build/bamboo-build/THIRDP-QT98-BAMN/sources/Qt-6.3.0-R1-macx-clang-static/qml
      ```

      this import path is pointing to the folder which is used when compiling qt (it seems to be compiled into the binary?), but it is invalid when using qt.

      makes me wonder if the qml import path could be inferred from the location of the qmltc binary, as it's located int `/path/to/qt/bin/qmltc`, while the qml import folder is in `/path/to/qt/qml`.

        Attachments

        For Gerrit Dashboard: QTBUG-102630
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            agolubev Andrei Golubev
            Reporter:
            timblechmann tim blechmann
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change