.exe file doesn’t start
-
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.
-
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. -
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. -
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.
-
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 -
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.
-
Ok.
Should I consider some important points?
Or just reinstall? -
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.
-
Ok I'll try later when I'm home.
Thanks (: -
Good luck !!
-
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?
-
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. -
you reinstall it
-
Sorry I meant i reinstalled the whole QtSDK kit
-
Push Push Push
Still got the problem! -
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.? -
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?
-
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
-
@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.
-
@Giver_Kdk thats a very old thread here, and copying dll's by hand is usually the wrong and error prone way to deploy your qt application.
Qt offers - officially - for Windows the
windeployqt
tool and for macOSmacdeployqt
tool:
https://doc.qt.io/qt-5/windows-deployment.html
https://doc.qt.io/qt-5/macos-deployment.html#macdeployfor linux, you actually have to do it by hand
https://doc.qt.io/qt-5/linux-deployment.html
or use the unofficial linuxdeployqt tool
https://github.com/probonopd/linuxdeployqt