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. [SOLVED] Again on Windows Deployment
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Again on Windows Deployment

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.6k 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.
  • E Offline
    E Offline
    Etchelon
    wrote on last edited by
    #1

    Hello.

    I have been trying to deploy my (quite simple) Qt/QML app to Windows (8.1, if that matters) and I simply can't do it, despite reading every thread in this forum and guides all over.
    First, I tried to do it the standard way:
    MyApp Folder
    ---- MyApp.exe
    ---- Qt5Core.dll
    ---- // All other required DLLs

    ---- platforms
    -------- qwindows.dll

    ---- bearer
    -------- qgenericbearer.dll
    -------- qnativewifibearer.dll

    ---- imageformats
    -------- // all .dll files

    ---- QtQuick
    -------- Controls
    ------------ qtquickcontrolsplugin.dll

    ---- QtQuick.2
    -------- qtquick2plugin.dll

    ---- qml
    -------- MyApp
    ------------ main.qml

    But this sh*t won't start!!! So I tried to add C:\Qt\5.2.1\mingw48_32\bin to Windows's PATH and place all DLLs inside there, but still no go.
    I then used DependencyWalker to see what the hell is missing, and here's what it says:

    http://1drv.ms/MmgzDS

    So, looks like some Windows API are missing, right? Then why does that app start without a problem when launched from Qt Creator? And those missing .DLLs are obviously not installed in the Qt folder...

    I also tried to use process explorer from the Sysinternals suite (by Russinovic) to see which .DLLs are used by the working exe (opened in Qt Creator), and the ones I have listed above are all those listed by process explorer, so I should not be missing anything...yet, nothing works!!! Please help...

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      You also need all the qmldir files in your QML plugin subdirectories.

      Ignore the Windows DLLs. Those are false positives -- you'll see them even when you try to open a Microsoft program like Visual Studio.

      If you still have no luck, try this guide: http://qt-project.org/wiki/Deploy_an_Application_on_Windows It ensures that no required file can possibly be missed.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Etchelon
        wrote on last edited by
        #3

        That was it...thanks! I saw that post and I was sure I had already tried to add those files to the deployment folders. Maybe I did it when still missing other files...what a confusion :D

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          You're welcome :)

          Please edit your original post and add "[SOLVED]" to the title.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          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