Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] Mac deployment Qt Quick 2.0 Qt 5.3.1

[SOLVED] Mac deployment Qt Quick 2.0 Qt 5.3.1

Scheduled Pinned Locked Moved QML and Qt Quick
30 Posts 3 Posters 11.7k Views
  • 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.
  • shavS Offline
    shavS Offline
    shav
    wrote on last edited by
    #19

    Hi gbgsoft,

    Please update your copy from repo. But I still have a problem with certificated version of app.

    Mac OS and iOS Developer

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nils_heidorn
      wrote on last edited by
      #20

      Holy crap, shav, you made my day !
      I was experiencing the macdeployqt problem and was googling for a solution and found this thread.
      Download your source, used it and my app now works on a non-Qt Mac !

      THANK YOU !!!!

      Nils

      1 Reply Last reply
      0
      • shavS Offline
        shavS Offline
        shav
        wrote on last edited by
        #21

        You are welcome!

        P.S. If you find issues post here.

        Mac OS and iOS Developer

        1 Reply Last reply
        0
        • G Offline
          G Offline
          gbgsoft
          wrote on last edited by
          #22

          Hi Shav: I downloaded from the latest commit in the repo. The program works just fine, if non-qml programs are used but shows the same QML errors as before, my app can't find the Qt Quick modules. Is there some output I could trap for you from the console. Alternatively I could put the app in question into Gitorious and you could pull a copy and see for yourself. Thanks.

          1 Reply Last reply
          0
          • shavS Offline
            shavS Offline
            shav
            wrote on last edited by
            #23

            Hi gbgsoft,

            As I remember your app using the Qt Quick right? If so you need to set QML files folder. It's need because macdeployqt will analyse your QML's files and found plugins which will be coped to your app bundle. If you doesn't set QML files macdeployqt tool doesn't copy any QtQuick plugins to your app and you will see the errors about "can’t find the Qt Quick modules". I think you should set QML files in app.

            I've added docs about my tool. You can find it "here":http://www.dshav.com/my_projects/qt-projects/qt-app-mac-deploy/documentation/. If you find some issues in doc let me know.

            Thanks!

            Mac OS and iOS Developer

            1 Reply Last reply
            0
            • G Offline
              G Offline
              gbgsoft
              wrote on last edited by
              #24

              Hi Shav: yes I'm using Qt Quick. The path I am specifying is the path to my applications source folder. This folder contains main.qml and other qml files. There is also a sub-folder which also contains qml files. Should I be specifying the path to the qml files or the fully qualified path to main.qml itself?

              e,g, ....myapp/src/main.qml

              1 Reply Last reply
              0
              • shavS Offline
                shavS Offline
                shav
                wrote on last edited by
                #25

                In your case path must be like myapp/src/

                Mac OS and iOS Developer

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  gbgsoft
                  wrote on last edited by
                  #26

                  Hi Shave: I have successfully deployed 2 applications using your tool: one pure desktop and and other a Qt Quick application. However when I try to deploy the app that lead to my original post, the QML foldes Are not copied to myapp.app/Contents/Resources/qml. I don't even think it's finding main.qml. I'd like to get to the bottom of this. Is there any thing that you can suggest?

                  1 Reply Last reply
                  0
                  • shavS Offline
                    shavS Offline
                    shav
                    wrote on last edited by
                    #27

                    Hi gbgsoft!

                    My tool used macdeployqt tool form Qt. This tool copy libs, frameworks to application bundle. But for QML the tool copy special plugins. If you see folder <you_app_name>.app/Contents/Resources/qml you can see some folders. Inside of folders you can find dynamic libs of QtQuick.

                    So when you set the QML path in my tool this options said to macdeplyoyqt about copy QtQuick plugins to your application bundle.

                    If you want read more about deploy try to read "this article":http://qt-project.org/doc/qt-5/macosx-deployment.html.

                    By the way in your application you use Qt resource to save QML files?

                    Mac OS and iOS Developer

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      gbgsoft
                      wrote on last edited by
                      #28

                      [solved] Hi Shav: I found what the problem was. There was a vestige of an old qml file in the root folder of the project. Once I deleted that file, everything worked as it should

                      1 Reply Last reply
                      0
                      • shavS Offline
                        shavS Offline
                        shav
                        wrote on last edited by
                        #29

                        Cool! Could you add "Solved" to title of thread?

                        Mac OS and iOS Developer

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          gbgsoft
                          wrote on last edited by
                          #30

                          Hi Shav: I forgot to mention that when you include a QML folder and ask the app to save the script, the -qmldir parameter does not get saved to the script. Thanks again for your help.

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved