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. Problem with deployment on windows [solved]
Forum Updated to NodeBB v4.3 + New Features

Problem with deployment on windows [solved]

Scheduled Pinned Locked Moved QML and Qt Quick
15 Posts 4 Posters 3.7k Views 1 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Did you follow the "windows deployment guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html ?

    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
    0
    • T Offline
      T Offline
      the_scrabi
      wrote on last edited by
      #3

      Well yes. I deployed it with all necessary qt libs, the mingw libs, and the icu* libs.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        code_fodder
        wrote on last edited by
        #4

        It can be a slightly hit-and-miss operation, but from your error I am certain that you are just missing a lib file, which one? - well, that is the trick!

        Can you list the lib files that you have deployed with your project and then list your .pro file (which contains all the included elements like:
        @
        QT += core
        QT += network
        QT += xml
        QT += multimedia
        @

        Which can also help you determine what you need.

        Also, did you use the Dependency Walker tool to look for dlls?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Torgeir
          wrote on last edited by
          #5

          I'm can see that you are missing:

          platforms/qwindows.dll
          QtQuick.2/qtquick2plugin.dll
          QtQuick.2/qmldir

          They need to be present as those two folders alongside your main .exe

          1 Reply Last reply
          0
          • T Offline
            T Offline
            the_scrabi
            wrote on last edited by
            #6

            Sry that it took so long for this reply but i´ve been on vacation. Well yes now the window of the game is oppening. But no pictures are shown... well the pictures are actually .svg files (very inefficient i know). If you may want to take a look at it here is the updated file: https://dl.dropboxusercontent.com/u/49003810/Hakfroeg.zip

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              Then you need the QtSvg library

              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
              0
              • T Offline
                T Offline
                the_scrabi
                wrote on last edited by
                #8

                i use them already...

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  What version of Qt are you using ? If applicable, what installer did you use ?

                  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
                  0
                  • T Offline
                    T Offline
                    the_scrabi
                    wrote on last edited by
                    #10

                    Qt 5.1 and I am not using any installer... i just deploy everything in a zip file.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      Did you also deploy the QtSvg dll ?

                      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
                      0
                      • T Offline
                        T Offline
                        the_scrabi
                        wrote on last edited by
                        #12

                        As i already said: i do yes xD.

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          Just checking, using and deploying are not the same thing ;)

                          Another thing you can check, use Dependency Walker on your application/libraries (by the way, you zip file is not accessible) to see if it finds everything

                          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
                          0
                          • T Offline
                            T Offline
                            the_scrabi
                            wrote on last edited by
                            #14

                            Alright so at least I got it running. With dependency walker I couldn't figure out anything. But with my neighbours pc I figured out that the plugin “imageformats” was missing to draw the svg images... so now its working: https://dl.dropboxusercontent.com/u/49003810/Hakfroeg.zip

                            But isn't it a bit unadvantageous to deliver a program that has not a megabyte of size with 50mb of libraries ?!?

                            thx for help ;)

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #15

                              You're welcome !

                              Well... That's the case for numerous software, they are not very heavy but the libraries they use might be (without mentioning the possible runtime dependencies such as drivers/external libraries etc...) You could always rebuild Qt to suite your needs disabling what you don't use (time intensive and error prone) or go the static route BUT this one introduces some constraints such as having a commercial license from Digia.

                              Also, don't forget to update the thread title prepending [solved] so other forum users may know a solution has been found :)

                              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
                              0

                              • Login

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