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. .exe file doesn’t start
Forum Updated to NodeBB v4.3 + New Features

.exe file doesn’t start

Scheduled Pinned Locked Moved Installation and Deployment
24 Posts 7 Posters 24.3k 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.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #4

    The compilation output does not show anomalies. I have seen that you are compiling in release mode. You might want to change to debug mode (under projects).
    Then you can run your programs in the debugger and find out where exactly it stops.

    You are running in terminal. What do you mean with that?
    Do you open a command prompt window and start the executable from the command prompt?
    Did you try to run a simple hello world program?

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TheEvilWeed
      wrote on last edited by
      #5

      If I run the programm in the QtCreator I don't have any problems.

      With "running in terminal" I mean, under Projects->Run you can change "Run in terminal".
      When I start the programm a terminal window shows up and if the programm sends a message with "cout" it shows the message in this terminal window.
      But this only works in QtCreator.

      Yes, I tried everything. In QtCreator every programm runs fine but if I build a .exe and run it, nothing happens.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #6

        It is good that your program is running fine in qt creator.
        Your compile output shows that you are creating an application "cpp_web.exe". When you run it in creator, you are starting this executable. If the application does everything allright in the creator, that is good news.

        How do you start this executable outside of the creator?
        You need to make sure that you are starting the correct exe. Sometimes one is changing the compilation setup and starting a leftover exe. So better check the creation date and time of the exe.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TheEvilWeed
          wrote on last edited by
          #7

          I just navigate in the explorer to the project folder and inside this folder there is a folder named "release" with the .exe in it.
          I simply double-click it.
          Yes it's always the right one.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #8

            Does your application really have a GUI already?

            It is a bit strange that you do not get any error message as you have already written in starting your post. The only explanation I have at the moment is that you are not starting the GUI. However, you state that the application (including the gui) works fine in qt creator.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TheEvilWeed
              wrote on last edited by
              #9

              Yes it has.
              Do you want to see my source code?
              Here's the project folder:
              http://dl.dropbox.com/u/36957584/cpp_web.zip

              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on last edited by
                #10

                I have no explanation for your problem.
                I am running windows 7 64 bit, but with msvc2005. So starting your exe results in an error message that mingw*.dll is missing. That was clear.
                Compilation and starting in the msvc starts in the debugger normally, a browser appears. Starting the exe externally the same thing. No problems at all.

                Maybe you have some problems with the installation and should reinstall.

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  TheEvilWeed
                  wrote on last edited by
                  #11

                  Ok.
                  Should I consider some important points?
                  Or just reinstall?

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #12

                    I guess that this might be a problem with the mingw compiler installation. However, I do not have any experience there. Maybe there are some environment settings (like path), which you have not seen during installation. Maybe there are others. So watch out for any details there and follow. But those are only blind guesses.

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      TheEvilWeed
                      wrote on last edited by
                      #13

                      Ok I'll try later when I'm home.
                      Thanks (:

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        koahnig
                        wrote on last edited by
                        #14

                        Good luck !!

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 Reply Last reply
                        0
                        • T Offline
                          T Offline
                          TheEvilWeed
                          wrote on last edited by
                          #15

                          Now I reinstalled QtCreator.
                          The projects which run in the command prompt are working but the GUI projects not.
                          The GUI doesn't show up.

                          Someone an idea?

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            koahnig
                            wrote on last edited by
                            #16

                            Hi there,
                            I am wondering why you installed only qt creator but not the whole suite?
                            Since in the creator was working, but it did not outside there must be probably something with the normal setup.
                            Speaking about the environment. Do you have an version of Qt installed? Or do you have an application using old Qt libs installed? However, you should see an error message then, but that might be a reason.

                            Vote the answer(s) that helped you to solve your issue(s)

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              JacksonHeliyam
                              wrote on last edited by
                              #17

                              you reinstall it

                              [url=http://www.quicklingo.com/en/interpretation/italian-interpreters]italian interpreters[/url]

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                TheEvilWeed
                                wrote on last edited by
                                #18

                                Sorry I meant i reinstalled the whole QtSDK kit

                                1 Reply Last reply
                                0
                                • T Offline
                                  T Offline
                                  TheEvilWeed
                                  wrote on last edited by
                                  #19

                                  Push Push Push
                                  Still got the problem!

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    Seraph
                                    wrote on last edited by
                                    #20

                                    Yes, i got the same problem.
                                    I have a desktop open gl project and i'm trying to deploy it for windows.
                                    I copied all required .DLL files next to the .exe file. (Release build)
                                    The program starts and runs fine on my workstations but only on machines which have Qt5 Desktop OpenGL(self compiled) installed!
                                    Other machines (even those who have the normal Qt5.0.0 installed) wont start the program! It starts and stops again and you don't see anything. Sometimes one can see the window frame and then the application crashes... Do i miss smth.?

                                    1 Reply Last reply
                                    0
                                    • B Offline
                                      B Offline
                                      broinel
                                      wrote on last edited by
                                      #21

                                      Place the libEGL.dll into the exe's folder.

                                      In my case that helped. I'm still having the same problem when i want to run the exe on other computers. But at least it works so far on mine.

                                      Any ideas?

                                      1 Reply Last reply
                                      0
                                      • B Offline
                                        B Offline
                                        broinel
                                        wrote on last edited by
                                        #22

                                        okey i found a solution.

                                        • place all the dll's the program is asking for in your directory
                                        • place LibEGL.dll in your directory
                                        • create a new folder named "platforms"
                                        • place "qminimal.dll" and "qwindows.dll" in that folder

                                        start your exe

                                        G 1 Reply Last reply
                                        0
                                        • B broinel

                                          okey i found a solution.

                                          • place all the dll's the program is asking for in your directory
                                          • place LibEGL.dll in your directory
                                          • create a new folder named "platforms"
                                          • place "qminimal.dll" and "qwindows.dll" in that folder

                                          start your exe

                                          G Offline
                                          G Offline
                                          Giver_Kdk
                                          wrote on last edited by
                                          #23

                                          @broinel Yeah u're right. And if anyone is wondering where to find those .dll files, u will find it on "bin" and "plugins" folder of qt installation directory.

                                          J.HilkJ 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