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. The application was unable to start correctly (0xc000007b)
QtWS25 Last Chance

The application was unable to start correctly (0xc000007b)

Scheduled Pinned Locked Moved Solved Installation and Deployment
23 Posts 6 Posters 14.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.
  • N Offline
    N Offline
    neda
    wrote on last edited by neda
    #1

    Hi,
    I write a program in qt from windows 8.1 64 bit:
    Qt Creator 3.5.1 (opensource)
    Based on Qt 5.5.1 (MSVC 2013, 32 bit)

    I released my project but I can not run it. Everything works fine while debugging, even while press release, but when I want to run my project out of Qt Creator, I get following error.

    The application was unable to start correctly (0xc000007b).

    Please guide me.
    Thanks

    1 Reply Last reply
    0
    • sneubertS Offline
      sneubertS Offline
      sneubert
      wrote on last edited by
      #2

      Hi neda,
      when you say out of Creator, you mean starting the application from Windows Explorer?
      If yes, did you deploy the necessary qt dependencies withwindeployqt?

      N 1 Reply Last reply
      1
      • sneubertS sneubert

        Hi neda,
        when you say out of Creator, you mean starting the application from Windows Explorer?
        If yes, did you deploy the necessary qt dependencies withwindeployqt?

        N Offline
        N Offline
        neda
        wrote on last edited by neda
        #3

        @sneubert
        I want to execute my program in other computers in all windows without install other software like Qt creator.

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

          Hi,

          Then as @sneubert suggested you have to deploy your application. windeployqt is the easiest way to do it.

          Note that if you want to install your application on other computers you might want to create an installer for that. Something like Qt's Installer Framework, Inno Setup or NSIS etc.

          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
          • koronaboraK Offline
            koronaboraK Offline
            koronabora
            wrote on last edited by
            #5

            Use 'deploy.bat' like this:

            @echo off
            C:\Qt\5.6\msvc2015_64\bin\windeployqt.exe --debug "C:\Users\KOT\Documents\Visual Studio 2015\Projects\MoneyManagement\x64\Debug\MoneyManagement.exe"
            

            Remove "--debug" flag for release build.

            1 Reply Last reply
            1
            • N Offline
              N Offline
              neda
              wrote on last edited by neda
              #6

              I copied all required .DLL files next to the .exe file(Release build) by windeployqt.exe.

              But the application just won't run and I do not see any error.

              I have libEGL.dll in program directory and "platform" directory containing qwindows.dll and qminimal.dll.
              I see my application in "ProcessExplorer".

              pic

              I use SerialPort , Camera, XML and Canvas in my project.

              1 Reply Last reply
              0
              • sneubertS Offline
                sneubertS Offline
                sneubert
                wrote on last edited by
                #7

                There should be a lot more dlls (Qt5Core.dll, Qt5Gui.dll, ...) after running windeployqt. Do you have more than one version of prebuild qt binaries installed?
                You have to run the windeployqt.exe from the bin directory matching the compiler you used for creating the application.

                N 1 Reply Last reply
                1
                • sneubertS sneubert

                  There should be a lot more dlls (Qt5Core.dll, Qt5Gui.dll, ...) after running windeployqt. Do you have more than one version of prebuild qt binaries installed?
                  You have to run the windeployqt.exe from the bin directory matching the compiler you used for creating the application.

                  N Offline
                  N Offline
                  neda
                  wrote on last edited by neda
                  #8

                  @sneubert

                  Thank you
                  I run "windeployqt.exe" from "C:\Windows\System32\cmd.exe /A /Q /K C:\Qt\Qt5.5.1\5.5\msvc2013_64\bin\qtenv2.bat"
                  and create application by Qt 5.5.1 ("C:\Qt\Qt5.5.1\Tools\QtCreator\bin\qtcreator.exe").

                  I have "Qt5Core.dll, Qt5Gui.dll" after running windeployqt.
                  pic

                  @sneubert said:

                  Do you have more than one version of prebuild qt binaries installed?

                  Maybe
                  I am not sure.
                  I have only Version 5.5.1 In the list of programs.

                  @sneubert said:

                  There should be a lot more dlls

                  For example?

                  1 Reply Last reply
                  0
                  • sneubertS Offline
                    sneubertS Offline
                    sneubert
                    wrote on last edited by
                    #9

                    i can´t see your images due to our corporate proxy.
                    But my dirs list dlls like:
                    D3Dcompiler_47.dll
                    libEGL.dll
                    libGLESV2.dll
                    opengl32sw.dll
                    ...
                    Qt5Widgets.dll
                    Qt5Multimedia.dll

                    if it´s a missing dependecy you can check by load your application in DependencyWalker (google for download).

                    if you have additional qt binaries, there should be more directories below c:\qt\qt5.5.1\5.5\. can u list them?

                    As your application shows up in processexplorer use printing for example to cout to check your actually calling show on a widget.
                    BTW did you set any windows flags like translucent background or frameless window ?

                    1 Reply Last reply
                    1
                    • N Offline
                      N Offline
                      neda
                      wrote on last edited by neda
                      #10

                      Thank you
                      Please see this Link

                      1 Reply Last reply
                      0
                      • sneubertS Offline
                        sneubertS Offline
                        sneubert
                        wrote on last edited by sneubert
                        #11

                        In your first post you say:
                        Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                        in general the folder C:\Qt\Qt5.5.1\5.5\msvc2013_64 points to the 64bit qt binaries.
                        Is there a folder like C:\Qt\Qt5.5.1\5.5\msvc2013_x86 or C:\Qt\Qt5.5.1\5.5\msvc2013
                        Can u use the windeployqt from there an give it another try?
                        You can see the exact path to qt binaries in kit configuration of creator.

                        N jsulmJ 3 Replies Last reply
                        1
                        • sneubertS sneubert

                          In your first post you say:
                          Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                          in general the folder C:\Qt\Qt5.5.1\5.5\msvc2013_64 points to the 64bit qt binaries.
                          Is there a folder like C:\Qt\Qt5.5.1\5.5\msvc2013_x86 or C:\Qt\Qt5.5.1\5.5\msvc2013
                          Can u use the windeployqt from there an give it another try?
                          You can see the exact path to qt binaries in kit configuration of creator.

                          N Offline
                          N Offline
                          neda
                          wrote on last edited by
                          #12

                          @sneubert said:

                          Is there a folder like C:\Qt\Qt5.5.1\5.5\msvc2013_x86 or C:\Qt\Qt5.5.1\5.5\msvc2013

                          No

                          1 Reply Last reply
                          0
                          • sneubertS sneubert

                            In your first post you say:
                            Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                            in general the folder C:\Qt\Qt5.5.1\5.5\msvc2013_64 points to the 64bit qt binaries.
                            Is there a folder like C:\Qt\Qt5.5.1\5.5\msvc2013_x86 or C:\Qt\Qt5.5.1\5.5\msvc2013
                            Can u use the windeployqt from there an give it another try?
                            You can see the exact path to qt binaries in kit configuration of creator.

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @sneubert

                            Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                            

                            That's the QtCreator version not the Qt version which is @neda uses.

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            N 2 Replies Last reply
                            1
                            • jsulmJ jsulm

                              @sneubert

                              Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                              

                              That's the QtCreator version not the Qt version which is @neda uses.

                              N Offline
                              N Offline
                              neda
                              wrote on last edited by neda
                              #14

                              @jsulm

                              I remove all Qt program and install "qt-opensource-windows-x86-msvc2013_64-5.5.1.exe"
                              but I have same specification in window "About Qt Creator".
                              Qt Creator 3.5.1 (opensource)
                              Based on Qt 5.5.1 (MSVC 2013,32 bit)
                              and url "C:\Qt\Qt5.5.1\5.5\msvc2013_64" in my computer.

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

                                The QtCreator version doesn't matter at all:

                                Qt Creator 3.5.1 (opensource)
                                Based on Qt 5.5.1 (MSVC 2013,32 bit)
                                

                                that means you have QtCreator 3.5.1 which was built with Qt 5.5.1 using MSVC 2013, 32bit.
                                You can use any other Qt version with QtCreator.

                                C:\Qt\Qt5.5.1\5.5\msvc2013_64
                                

                                yes, this one is Qt you installed.

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                1
                                • jsulmJ jsulm

                                  @sneubert

                                  Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                                  

                                  That's the QtCreator version not the Qt version which is @neda uses.

                                  N Offline
                                  N Offline
                                  neda
                                  wrote on last edited by neda
                                  #16

                                  @jsulm said:

                                  Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                                  That's the QtCreator version not the Qt version which is @neda uses.

                                  Thank you
                                  I download "Qt 5.6.0 for Windows 64-bit (VS 2015, 836 MB) " from "http://www.qt.io/download-open-source/#section-2"
                                  I have this specification in window "About Qt Creator".
                                  Based on Qt 5.6.0(MSVC 2013,32 bit).

                                  But in my computer:
                                  "C:\Qt\Qt5.6.0\5.6\msvc2015_64"

                                  Why not change version of MSVC after install?
                                  I do not know what to do to solve this problem?

                                  1 Reply Last reply
                                  0
                                  • jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    Which problem do you mean?
                                    There is no problem!
                                    "About Qt Creator" dialog shows information about QtCreator not Qt versions you installed.
                                    It doesn't matter which Qt version QtCreator uses itself. You can use any other Qt version with QtCreator.
                                    To see which Qt version you're currently using check the Kit you're using: go to Tools/Options.../Build & Run/Kits.

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    N 1 Reply Last reply
                                    1
                                    • jsulmJ jsulm

                                      Which problem do you mean?
                                      There is no problem!
                                      "About Qt Creator" dialog shows information about QtCreator not Qt versions you installed.
                                      It doesn't matter which Qt version QtCreator uses itself. You can use any other Qt version with QtCreator.
                                      To see which Qt version you're currently using check the Kit you're using: go to Tools/Options.../Build & Run/Kits.

                                      N Offline
                                      N Offline
                                      neda
                                      wrote on last edited by
                                      #18

                                      @jsulm

                                      Thank you

                                      1 Reply Last reply
                                      0
                                      • sneubertS sneubert

                                        In your first post you say:
                                        Based on Qt 5.5.1 (MSVC 2013, 32 bit)
                                        in general the folder C:\Qt\Qt5.5.1\5.5\msvc2013_64 points to the 64bit qt binaries.
                                        Is there a folder like C:\Qt\Qt5.5.1\5.5\msvc2013_x86 or C:\Qt\Qt5.5.1\5.5\msvc2013
                                        Can u use the windeployqt from there an give it another try?
                                        You can see the exact path to qt binaries in kit configuration of creator.

                                        N Offline
                                        N Offline
                                        neda
                                        wrote on last edited by
                                        #19

                                        I installed the qt-opensource-windows-x86-msvc2013-5.6.0.exe.
                                        I build project (Release build) and run windeployqt from msvc2013 folder,
                                        .exe file run in my computer but in another computers I receive errors for not found msvcr120.dll,msvcp120.dll.
                                        After add that dll I have this error:
                                        The application was unable to start correctly (0xc000007b)

                                        kshegunovK 1 Reply Last reply
                                        0
                                        • N neda

                                          I installed the qt-opensource-windows-x86-msvc2013-5.6.0.exe.
                                          I build project (Release build) and run windeployqt from msvc2013 folder,
                                          .exe file run in my computer but in another computers I receive errors for not found msvcr120.dll,msvcp120.dll.
                                          After add that dll I have this error:
                                          The application was unable to start correctly (0xc000007b)

                                          kshegunovK Offline
                                          kshegunovK Offline
                                          kshegunov
                                          Moderators
                                          wrote on last edited by
                                          #20

                                          @neda said:

                                          in another computers I receive errors for not found msvcr120.dll,msvcp120.dll.

                                          This means these other computers don't have the VC redistributable installed. Either you have to package those with your application, or rather install them from MS's site:
                                          https://www.microsoft.com/en-us/download/details.aspx?id=48145 (the link is for VC 2015)

                                          Again, note the compiler version you've used for building your application and select the appropriate redistributable (matching the compiler version).

                                          Read and abide by the Qt Code of Conduct

                                          N 1 Reply Last reply
                                          1

                                          • Login

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