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. Qt application runs in Qt creator, but not as an .exe file
Forum Updated to NodeBB v4.3 + New Features

Qt application runs in Qt creator, but not as an .exe file

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 3 Posters 1.2k Views 2 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.
  • S Offline
    S Offline
    Sucharek
    wrote on 27 Aug 2021, 07:42 last edited by
    #1

    Hi, I've been making my simple program for the past few days, and I've finished it, but when I ran it as an .exe file outside of the Qt creator, it asked me to add some .dll files, so I did. Then it said "This application was unable to start correctly 0xc00007b", so I tried more solutions to fix my issue.
    I've tried to add the .dll files to the folder where the .exe file was, and nothing happened... Still the same error message.
    Then, I tried copying the platform folder from the Qt folder, nothing.
    Then, I copied every .dll file from MinGW/bin folder, and I got 2 new error messages:
    "This application failed to start because no qt platform plugin could be initialized. Reinstalling the application may fix this problem." and "A fail fast exception occurred. exception handlers will not be invoked and the process will be terminated immediately."
    This issue is probably caused because I use Windows 10 (x64) Super Lite because my PC isn't the best.
    I've tried many ways of troubleshooting but none of them seem to work.
    I'd be happy if we could solve my issue.
    Thans

    J 1 Reply Last reply 27 Aug 2021, 07:45
    0
    • S Sucharek
      27 Aug 2021, 07:42

      Hi, I've been making my simple program for the past few days, and I've finished it, but when I ran it as an .exe file outside of the Qt creator, it asked me to add some .dll files, so I did. Then it said "This application was unable to start correctly 0xc00007b", so I tried more solutions to fix my issue.
      I've tried to add the .dll files to the folder where the .exe file was, and nothing happened... Still the same error message.
      Then, I tried copying the platform folder from the Qt folder, nothing.
      Then, I copied every .dll file from MinGW/bin folder, and I got 2 new error messages:
      "This application failed to start because no qt platform plugin could be initialized. Reinstalling the application may fix this problem." and "A fail fast exception occurred. exception handlers will not be invoked and the process will be terminated immediately."
      This issue is probably caused because I use Windows 10 (x64) Super Lite because my PC isn't the best.
      I've tried many ways of troubleshooting but none of them seem to work.
      I'd be happy if we could solve my issue.
      Thans

      J Offline
      J Offline
      JonB
      wrote on 27 Aug 2021, 07:45 last edited by JonB
      #2

      @Sucharek said in Qt application runs in Qt creator, but not as an .exe file:

      "This application failed to start because no qt platform plugin could be initialized.

      For this one you should set environment variable QT_DEBUG_PLUGINS=1 in a terminal and then run your executable (from there). Look at the very end of the diagnostic output you will get for what is causing it to produce that message,

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sucharek
        wrote on 27 Aug 2021, 07:53 last edited by
        #3

        Hi, so I've set the variable, ran the program, but theres no output.
        Sorry for the delayed reply, I'm new on the forums, so I have to wait 600 seconds (10 minutes) to make a reply.
        I'll provide a screenshot.error.png

        J 1 Reply Last reply 27 Aug 2021, 08:10
        0
        • S Sucharek
          27 Aug 2021, 07:53

          Hi, so I've set the variable, ran the program, but theres no output.
          Sorry for the delayed reply, I'm new on the forums, so I have to wait 600 seconds (10 minutes) to make a reply.
          I'll provide a screenshot.error.png

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 27 Aug 2021, 08:10 last edited by
          #4

          @Sucharek said in Qt application runs in Qt creator, but not as an .exe file:

          I've set the variable, ran the program, but theres no output.

          In Windows, the debug output goes somewhere else.

          Use DebugView to see it: https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sucharek
            wrote on 27 Aug 2021, 08:15 last edited by
            #5

            Ok, I've gotten an output. Here it is:
            error2.png
            I find it interesting that I guess it doesn't see the qwindows.dll in the platform folder.
            Here's a screenshot of the platform folder
            03b58b13-d3a8-4434-a84f-8f960f5c4034-image.png

            J 1 Reply Last reply 27 Aug 2021, 08:18
            0
            • S Sucharek
              27 Aug 2021, 08:15

              Ok, I've gotten an output. Here it is:
              error2.png
              I find it interesting that I guess it doesn't see the qwindows.dll in the platform folder.
              Here's a screenshot of the platform folder
              03b58b13-d3a8-4434-a84f-8f960f5c4034-image.png

              J Offline
              J Offline
              JKSH
              Moderators
              wrote on 27 Aug 2021, 08:18 last edited by
              #6

              @Sucharek said in Qt application runs in Qt creator, but not as an .exe file:

              the platform folder

              It should be platforms, not platform

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

              1 Reply Last reply
              2
              • S Offline
                S Offline
                Sucharek
                wrote on 27 Aug 2021, 08:25 last edited by
                #7

                Thanks, that actually solved my issue.
                Thank you everyone for cooperating with me.
                I'm marking this post as solved.
                Thanks

                1 Reply Last reply
                0

                1/7

                27 Aug 2021, 07:42

                • Login

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