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. Deployment on Windows will not run, no error, no idea, help!?!

Deployment on Windows will not run, no error, no idea, help!?!

Scheduled Pinned Locked Moved Solved Installation and Deployment
13 Posts 3 Posters 4.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 Offline
    J Offline
    JrDeskJockey
    wrote on last edited by
    #1

    Hello. I am new to Qt and trying to create a Windows deployment. I started here...
    http://wiki.qt.io/Deploy_an_Application_on_Windows

    I am building an ESRI ArcGIS 100.2.1 QML based app which uses MSVC2017 on a 64 bit machine running Windows 7. The application builds and runs fine within Qt Creator.

    I tried the "Quick and dirty" section of the above deployment instructions and when I double click my exe, I get nothing. I don't even see a glimpse of a window or app start up. My mouse cursor just briefly changes, then nothing. The path of the bin/plugins/qml files and folders are slightly different than the instructions in "Quick and dirty" as I used the folders specific to MSVC2017. So I coped from the following to the location of my deployment folder where my exe is...
    C:\Qt\5.10.0\msvc2017_64

    Anyway....how can I troubleshoot this? Any help is appreciated. Let me know if any more info would help. Thanks!

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

      Hi and welcome to devnet,

      What about using windeployqt ?

      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
      • J Offline
        J Offline
        JrDeskJockey
        wrote on last edited by
        #3

        Yeah, I tried windeployqt too. Same result. I did see that warning at the top about VCINSTALLDIR. I tried setting that within my command prompt session to the following...
        C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC

        Then rerunning windeployqt the warning went away, but still same result. I'm not 100% if the above path is what I should have set it to or if the warning even really matters. Attached is a screenshot...
        0_1525722966238_Capture1.JPG

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

          Looks like you are using QML but you don't use the --qmldir option so you won't have the proper QML dependencies deployed.

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

          J 1 Reply Last reply
          1
          • SGaistS SGaist

            Looks like you are using QML but you don't use the --qmldir option so you won't have the proper QML dependencies deployed.

            J Offline
            J Offline
            JrDeskJockey
            wrote on last edited by
            #5

            @SGaist thanks for that tip. I reran passing the qmldir option and same result. Still the app doesn't load. I guess it doesn't surprise me though since the "Quick and dirty" method suggested copying the QML directory manually, which I did then, and still no go. Attached is a screen shot of the command I ran and I redirected the output to a log file (had to since it was too much to include in just one screen shot). Thanks so much for helping.0_1525724698640_Capture2.JPG
            I'll try attaching the log file shortly. It is giving me a permissions error at the moment. Maybe I have to make a 2nd post.

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

              That warning could explain why it's not working.

              Did you try to deploy using Visual Studio command prompt ?

              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
              • J Offline
                J Offline
                JrDeskJockey
                wrote on last edited by
                #7

                Actually, previously I had not. Thanks for that tip. I am learning as I go :)

                But now I have run the same commands from "Developer command prompt for VS", and the warning goes away. But still to no avail. Executing my EXE does nothing. No window or error. I still don't have permissions to upload the entire log file here, so I'll add a couple screen shots. First one is beginning of log, second is end of log.
                0_1525726950048_Capture4.JPG 0_1525727011916_Capture5.JPG

                This is my deploy directory afterwards...
                0_1525727117098_Capture6.JPG

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

                  Qt5Test.dll ? That's fishy... This is not a module that should be used in anything else that tests.

                  What I would do first is just try to deploy a default QWidget application, once that done and working, I'd go for a default QtQuick application just to be sure the procedure goes as expected.

                  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
                  1
                  • J Offline
                    J Offline
                    JrDeskJockey
                    wrote on last edited by
                    #9

                    Thanks for the help on this. Ultimately doing the QtQuick app and seeing that it worked, led me down a path searching for what was missing that was required by the ArcGIS templated project. Even though dependency walker didn't find anything and I did not see any documentation on ESRI's site about dependencies, I was able to slowly work my way through what looked like missing DLLs and once I had them included, the app loaded.

                    Pablo J. RoginaP 1 Reply Last reply
                    0
                    • J JrDeskJockey

                      Thanks for the help on this. Ultimately doing the QtQuick app and seeing that it worked, led me down a path searching for what was missing that was required by the ArcGIS templated project. Even though dependency walker didn't find anything and I did not see any documentation on ESRI's site about dependencies, I was able to slowly work my way through what looked like missing DLLs and once I had them included, the app loaded.

                      Pablo J. RoginaP Offline
                      Pablo J. RoginaP Offline
                      Pablo J. Rogina
                      wrote on last edited by
                      #10

                      @JrDeskJockey if your issue is solved, please don't forget to mark your post as such. Thanks.

                      Upvote the answer(s) that helped you solve the issue
                      Use "Topic Tools" button to mark your post as Solved
                      Add screenshots via postimage.org
                      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

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

                        Glad you found out !

                        Can you share 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

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          JrDeskJockey
                          wrote on last edited by
                          #12

                          Sure. I had to visually compare a samples app from ESRI and copy over what I thought was missing. This is what worked for me.....including these additional files...
                          C:\Program Files (x86)\ArcGIS SDKs\Qt100.2.1\sdk\windows\x64\bin\release\EsriCommonQt.dll
                          C:\Program Files (x86)\ArcGIS SDKs\Qt100.2.1\sdk\windows\x64\bin\release\runtimecore.dll
                          C:\Program Files (x86)\ArcGIS SDKs\Qt100.2.1\sdk\windows\x64\bin\release\ArcGISRuntimeToolkitCppApi.dll
                          C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Remote Debugger\x64\msvcp140.dll
                          C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Remote Debugger\x64\vcruntime140.dll
                          C:\Qt\5.10.0\msvc2017_64\bin*.dll

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

                            Thanks !

                            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