Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Windows Deployment with QML (simple?) issue

Windows Deployment with QML (simple?) issue

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 1.4k 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.
  • J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #1

    Hello everyone,

    I'm about to deploy my first QML-based programm (on Windows) and I run into a problem.

    I'm using the windeployqt tool with the --qmldir <path\to\folder\that\contains\main.qml> - option. That does seem to work, as the folders qmltooling, Qt, QtGraphicalEffects, QtQml, QtQuick, QtQuick.2 and scenegraph have been added additionally to the normal bearer, platforms, translations etc folders.

    However I'm unable to start my programm, calling echo %errorlevel% returns -1073741819, which does not help much.

    The program is written with Qt 5.9.3(MSVC) and I'm using the windeploytool from that folder

    The QML-Files are part of my ressource file qml.qrc and are therefore part of the binary (?), I have not copied them anywhere into the "release-folder".

    I'm able to run my program without issue out of the QtCreator, therefore I'm sure, its a simple issue, that I'm unable to see, so any help is appreciated.
    0_1516112001264_Capture.PNG


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

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

      Hi,

      Did you check with Dependency Walker whether there's something missing ?

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

      J.HilkJ 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Did you check with Dependency Walker whether there's something missing ?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @SGaist I actually did, and forgot to post that. Nothing striking showed up.

        I should mention, that "Splash.exe" a pure cpp programm starts and runs fine.

        I ended up copying all dlls by hand and now it works.

        The normal dll's where the correct ones, or Splash.exe would not have run otherwise, so I assume windeployqt copied the wrong QML-dependent dlls. I have more than one Qt-Installation (5.7, 5.9 5.10 MSVC & mingw).

        Sadly not the first time I had such an issue with the windeployqt tool.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

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

          What was missing ?

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

          J.HilkJ 1 Reply Last reply
          0
          • SGaistS SGaist

            What was missing ?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @SGaist I'm not sure,
            if you look at the picture I posted, I copied, by hand, the folders qmltooling, Qt, QtGraphicalEffects, QtQML, QtQuick, QtQuick.2, and scenegraph and than it worked.

            So anyone of them, or all auf them?


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            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