Qt Forum

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

    Error with QML demo minehunt on OS X

    QML and Qt Quick
    2
    9
    3408
    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.
    • 2
      2IZI4U last edited by

      Hello everyone !

      I have some trouble to run the minehunt demo project.
      I have installed the Qt 4.7 package and installed Qt Creator 2.1.0-beta1

      The error message I have is:
      File error for URL file:///Developer/Examples/Qt/Demos/declarative/minehunt-build-desktop/minehunt.app/Contents/MacOS/minehunt.qml

      I hope someone could help me on this because I would like to make an application in C++ with a really nice GUI like with Quick

      Regards,
      Guillaume

      1 Reply Last reply Reply Quote 0
      • ?
        Guest last edited by

        on winxp, demo says I have to compile this program to run

        I loaded this in creator and compiled without issues, but when I launched, just a blank window comes up ...

        1 Reply Last reply Reply Quote 0
        • 2
          2IZI4U last edited by

          "just a blank window comes up …"

          Same thing but I have the error describe before...

          1 Reply Last reply Reply Quote 0
          • K
            kleimola last edited by

            Make sure that you have the all the .qml and image files etc under the same directory as where the compiled binary is located. E.g. windows makes those xxx-build-desktop directories during compile and puts the binary there in debug or release subdirectory. This is a bit annoying since then you have to copy all the "not-compiled" stuff there also. You could also put all the .qml and image files into a resource file and have moc bake them into your binary, but then all the file loading references must be adjusted accordingly.

            >> Johannes <<

            1 Reply Last reply Reply Quote 0
            • 2
              2IZI4U last edited by

              Hy Johannes thank you for your replay.

              I have open the .pro file of minehunt, then I have copy all .qml file in the directory "minehunt-build-desktop" then I have build the project and I get the same error :s

              That's quite sad that Qml projects do not work automagicly with the Qt project

              Anyway, I think Qml doesn't really feat my technical needs :(

              Thank you anyway for you answer ;)

              1 Reply Last reply Reply Quote 0
              • ?
                Guest last edited by

                hi 2IZI4U,
                in the project mode, I went and changed from "minehunt-build-desktop" to "minehunt" ... i.e. the same folder and it worked just fine.

                thanks Johannes! :)

                1 Reply Last reply Reply Quote 0
                • 2
                  2IZI4U last edited by

                  Well played Chetan, but for me still the same problem with the new path:

                  <Unknown File>: File error for URL file:///Developer/Examples/Qt/Demos/declarative/minehunt/minehunt.app/Contents/MacOS/minehunt.qml

                  There is really a problem with the Qml file :(

                  If I'm the only one on OSX to have this problem don't waste your time to solve it, I will continue to look but really QML is not for me :(

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest last edited by

                    I wouldn't give up so easily on Qml ... something really good I've seen in a long time. And you will be seeing lot of this on both desktop and mobile platforms going fwd ... :)

                    1 Reply Last reply Reply Quote 0
                    • 2
                      2IZI4U last edited by

                      Yes that's right, I have forget that QML is after all just a QWidget (if I'm right) so I can put it in my Qt desktop project.

                      For that I will need an exemple ... like minehunt ;)
                      At least I can read the source code :D

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