Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved Deploying 3rdparty Qt Quick plugins on macOS

    3rd Party Software
    3
    13
    2081
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SGaist
      SGaist Lifetime Qt Champion last edited by

      Hi,

      There's the -qmldir option of macdeployqt that you can use but AFAIK, it only takes one path currently.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply Reply Quote 0
      • I
        Ilya Bizyaev last edited by

        Thanks for the reply :)

        According to the macdeployqt manual:
        -qmldir=<path> : Scan for QML imports in the given path.

        This argument is used to specify the application's qml source directory to be scanned for import * statements. It can accept multiple paths, but these are not used as library search paths.

        To specify a library search path, macdeployqt would need to pass it as an -importPath argument to qmlimportscanner, but it only passes Qt's default library location: http://code.qt.io/cgit/qt/qttools.git/tree/src/macdeployqt/shared/shared.cpp#n1236

        As a hack one can create a link to the custom location from inside the Qt installation, and that's what I use for now, but I think there has to be a better way.

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          A feature to add to macdeployqt: an option to give additional import paths.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 0
          • I
            Ilya Bizyaev last edited by

            Should I open a feature request?

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              If you don't find any yet, yes. If you can provide a minimal buildable sample application that shows that behaviour it would be great.

              Out of curiosity, how did you got Kirigami for macOS ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • I
                Ilya Bizyaev last edited by

                @SGaist I reported the issue as https://bugreports.qt.io/browse/QTBUG-70977 and opened a revision at https://codereview.qt-project.org/#/c/242083/

                1 Reply Last reply Reply Quote 0
                • I
                  Ilya Bizyaev last edited by

                  Kirigami works just right on macOS, here are some screenshots:

                  0_1538845873930_photo_2018-10-06_20-10-18.jpg
                  1_1538845873930_photo_2018-10-06_20-10-20.jpg

                  The app is on its early stages, though.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Thanks for the submission !

                    One small fix to the commit message to do :)

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply Reply Quote 0
                    • I
                      Ilya Bizyaev last edited by

                      Starting from Qt 5.13, there will be a -qmlimport macdeployqt option to specify additional QML module search directories.

                      1 Reply Last reply Reply Quote 1
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        If needed earlier, macdeployqt can be manually built from the dev branch.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post