Trouble deploying QT exe for Windows












2















Using QT creator 4.7.1 I make a new qt widgets application.
I select release mode enter image description here



then I build the project.



in the release folder, my exe looks like this



enter image description here



now I open the command line and run the command



windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe


which results in this



enter image description here



upon attempting to run the exe I get an error message.



enter image description here



So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
I'm new to QT so I'm not sure if I'm making a simple mistake.



Any help would be appreciated.
Thank you.










share|improve this question





























    2















    Using QT creator 4.7.1 I make a new qt widgets application.
    I select release mode enter image description here



    then I build the project.



    in the release folder, my exe looks like this



    enter image description here



    now I open the command line and run the command



    windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe


    which results in this



    enter image description here



    upon attempting to run the exe I get an error message.



    enter image description here



    So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
    I'm new to QT so I'm not sure if I'm making a simple mistake.



    Any help would be appreciated.
    Thank you.










    share|improve this question



























      2












      2








      2








      Using QT creator 4.7.1 I make a new qt widgets application.
      I select release mode enter image description here



      then I build the project.



      in the release folder, my exe looks like this



      enter image description here



      now I open the command line and run the command



      windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe


      which results in this



      enter image description here



      upon attempting to run the exe I get an error message.



      enter image description here



      So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
      I'm new to QT so I'm not sure if I'm making a simple mistake.



      Any help would be appreciated.
      Thank you.










      share|improve this question
















      Using QT creator 4.7.1 I make a new qt widgets application.
      I select release mode enter image description here



      then I build the project.



      in the release folder, my exe looks like this



      enter image description here



      now I open the command line and run the command



      windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe


      which results in this



      enter image description here



      upon attempting to run the exe I get an error message.



      enter image description here



      So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
      I'm new to QT so I'm not sure if I'm making a simple mistake.



      Any help would be appreciated.
      Thank you.







      c++ qt deployment build release






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 14:43









      TrebuchetMS

      2,90511025




      2,90511025










      asked Nov 15 '18 at 8:12









      Dylan RobertsonDylan Robertson

      867




      867
























          3 Answers
          3






          active

          oldest

          votes


















          3














          Have you tried the Qt Windows deployment tool?
          http://doc.qt.io/qt-5/windows-deployment.html
          You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.






          share|improve this answer































            0














            I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.



            To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
            Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
            After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.



            Please try to download this
            https://github.com/denisgottardello/BackupTo
            and have a look at the qt.conf file, resource file and .pro file.






            share|improve this answer































              0














              Ok, i solved it, apparently the command
              windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe

              didn't work due to the version incompatibility between the qt build version and the windeployqt.exe



              to find your right version check your build settings :
              enter image description here



              and navigate to the qt version, and find "windeployqt.exe"



              mine was located here: F:QT5.12.0msvc2017_64bin



              now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's






              share|improve this answer























                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314957%2ftrouble-deploying-qt-exe-for-windows%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                3














                Have you tried the Qt Windows deployment tool?
                http://doc.qt.io/qt-5/windows-deployment.html
                You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.






                share|improve this answer




























                  3














                  Have you tried the Qt Windows deployment tool?
                  http://doc.qt.io/qt-5/windows-deployment.html
                  You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.






                  share|improve this answer


























                    3












                    3








                    3







                    Have you tried the Qt Windows deployment tool?
                    http://doc.qt.io/qt-5/windows-deployment.html
                    You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.






                    share|improve this answer













                    Have you tried the Qt Windows deployment tool?
                    http://doc.qt.io/qt-5/windows-deployment.html
                    You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 15 '18 at 8:49









                    Ilian ZapryanovIlian Zapryanov

                    3851414




                    3851414

























                        0














                        I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.



                        To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
                        Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
                        After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.



                        Please try to download this
                        https://github.com/denisgottardello/BackupTo
                        and have a look at the qt.conf file, resource file and .pro file.






                        share|improve this answer




























                          0














                          I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.



                          To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
                          Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
                          After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.



                          Please try to download this
                          https://github.com/denisgottardello/BackupTo
                          and have a look at the qt.conf file, resource file and .pro file.






                          share|improve this answer


























                            0












                            0








                            0







                            I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.



                            To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
                            Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
                            After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.



                            Please try to download this
                            https://github.com/denisgottardello/BackupTo
                            and have a look at the qt.conf file, resource file and .pro file.






                            share|improve this answer













                            I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.



                            To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
                            Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
                            After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.



                            Please try to download this
                            https://github.com/denisgottardello/BackupTo
                            and have a look at the qt.conf file, resource file and .pro file.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 15 '18 at 8:21









                            Denis GottardelloDenis Gottardello

                            363




                            363























                                0














                                Ok, i solved it, apparently the command
                                windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe

                                didn't work due to the version incompatibility between the qt build version and the windeployqt.exe



                                to find your right version check your build settings :
                                enter image description here



                                and navigate to the qt version, and find "windeployqt.exe"



                                mine was located here: F:QT5.12.0msvc2017_64bin



                                now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's






                                share|improve this answer




























                                  0














                                  Ok, i solved it, apparently the command
                                  windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe

                                  didn't work due to the version incompatibility between the qt build version and the windeployqt.exe



                                  to find your right version check your build settings :
                                  enter image description here



                                  and navigate to the qt version, and find "windeployqt.exe"



                                  mine was located here: F:QT5.12.0msvc2017_64bin



                                  now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    Ok, i solved it, apparently the command
                                    windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe

                                    didn't work due to the version incompatibility between the qt build version and the windeployqt.exe



                                    to find your right version check your build settings :
                                    enter image description here



                                    and navigate to the qt version, and find "windeployqt.exe"



                                    mine was located here: F:QT5.12.0msvc2017_64bin



                                    now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's






                                    share|improve this answer













                                    Ok, i solved it, apparently the command
                                    windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe

                                    didn't work due to the version incompatibility between the qt build version and the windeployqt.exe



                                    to find your right version check your build settings :
                                    enter image description here



                                    and navigate to the qt version, and find "windeployqt.exe"



                                    mine was located here: F:QT5.12.0msvc2017_64bin



                                    now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Nov 15 '18 at 9:33









                                    Dylan RobertsonDylan Robertson

                                    867




                                    867






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314957%2ftrouble-deploying-qt-exe-for-windows%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Florida Star v. B. J. F.

                                        Danny Elfman

                                        Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues