1 Attachment(s)
[URGENT]Can't run .exe outside QT5
I use Qt Creator 2.6.1 with Qt5.0.0 on Windows 7 64bits.
When I try to run the .exe file, after including the .dll's, the executable does absolutly nothing, not even starting a process.
I ran depency walker on the program and found out it was because of a conflit between the 64bit dll's in my computer and the 32bit dll on Qt5.
I then tried running the executable on a 32 bit pc, with windows vista 32bits and the same thing happened when trying to open my executable.
Running dependency walker I get the following message:
Attachment 8611
How can i solve this in order to run the executable?
Thank You in advance
Re: [URGENT]Can't run .exe outside QT5
What dependencies does dependency walker report as missing?
Re: [URGENT]Can't run .exe outside QT5
None, it display the error message "Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module." on IEFRAME.DLL, as seen in the image
Re: [URGENT]Can't run .exe outside QT5
And there are no dependency problems lower in the tree?
Re: [URGENT]Can't run .exe outside QT5
Only those involving IEFRAME.DLL
Re: [URGENT]Can't run .exe outside QT5
Can you verify if your application is starting at all? E.g. by running it from the console and printing some debug statement or by creating some file or something like that? Can you run it under a debugger?
Re: [URGENT]Can't run .exe outside QT5
I did as you said, and nothing, the application doesn't start.
If I run it inside Qt5 I get no error, even in the 64-bit computer, where I developed it, the program runs smoothly and performs all the tasks it is suposed to perform
Re: [URGENT]Can't run .exe outside QT5
Quote:
Originally Posted by
bshikari
I did as you said, and nothing, the application doesn't start.
What exactly did you do?
Re: [URGENT]Can't run .exe outside QT5
[UPDATE] For some reason I can run the debug .exe, but not the realase .exe
Re: [URGENT]Can't run .exe outside QT5
So you have likely deployed the debug Qt libraries and plugins rather than the release libraries and plugins.
Re: [URGENT]Can't run .exe outside QT5
Quote:
Originally Posted by
wysota
What exactly did you do?
I inserted a cout in the beggining of the code, and it didn't print anything in the terminal, thus prooving the application didn't start
Quote:
Originally Posted by
ChrisW67
So you have likely deployed the debug Qt libraries and plugins rather than the release libraries and plugins.
I includes the release .dll's in the release version's folder (the ones not ended in d), which are the ones the .exe asks for if I try to run it and don't have them in the root folder. So I don't think that's the problem
Re: [URGENT]Can't run .exe outside QT5
You must put dll files from bin folder
Also add this to release folder : libEGL.dll
Re: [URGENT]Can't run .exe outside QT5
Quote:
Originally Posted by
omid_kma
You must put dll files from bin folder
Also add this to release folder : libEGL.dll
I included all the dll's (from Qt's bin folder) that the executable asked me too, as well as libEGL. That was what I did before. Same result. no reaction from the executable upon opening
Re: [URGENT]Can't run .exe outside QT5
Use Dependency Walker to find missing dependencies.
1 Attachment(s)
Re: [URGENT]Can't run .exe outside QT5
Quote:
Originally Posted by
wysota
Use Dependency Walker to find missing dependencies.
I did, check the original post. That was on a Windows Vista 32 bits.
On my Windows 7 64x I get all these conflits with 64x and 86x, but this only happens with the release version (all this is explained in the post and replys to this thread):
Attachment 8706
Again, if you want more detail, please read the original post and replies
1 Attachment(s)
Re: [URGENT]Can't run .exe outside QT5
add Qt5 bin dir which contains also runtime dll to environment path for example my Qt5 bin dir is :
C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin
go to
1-Control Panel\All Control Panel Items\System
2-advanced system settings
3-enviroment variables
4-system variables
5-path ==>edit ==>add ; ==>past qt5 bin path at the end of line
Attachment 8707
Re: [URGENT]Can't run .exe outside QT5
Quote:
Originally Posted by
alrawab
add Qt5 bin dir which contains also runtime dll to environment path for example my Qt5 bin dir is :
C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin
go to
1-Control Panel\All Control Panel Items\System
2-advanced system settings
3-enviroment variables
4-system variables
5-path ==>edit ==>add ; ==>past qt5 bin path at the end of line
Attachment 8707
what name should I give this inclusion?
Re: [URGENT]Can't run .exe outside QT5
this inclusion give you advantage to run qt executable on your machine without including Qt 5 dependencies .
if you decide to export your executable to a client before packaging by nsis try to use Dependency Walker
http://www.dependencywalker.com/
Re: [URGENT]Can't run .exe outside QT5
Quote:
Originally Posted by
alrawab
this inclusion give you advantage to run qt executable on your machine without including Qt 5 dependencies .
if you decide to export your executable to a client before packaging by nsis try to use Dependency Walker
http://www.dependencywalker.com/
since i'm programming an application to be used by multiple people, not all of them with Qt installed. It would be preferable that it was a standalone .exe. but it's critical that it works on all computers
Re: [URGENT]Can't run .exe outside QT5
to be used by multiple people.... you have to include the run time dependencies or build a static app
add this line to your .pro