Trouble deploying QT exe for Windows
Using QT creator 4.7.1 I make a new qt widgets application.
I select release mode
then I build the project.
in the release folder, my exe looks like this
now I open the command line and run the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
which results in this
upon attempting to run the exe I get an error message.
So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
I'm new to QT so I'm not sure if I'm making a simple mistake.
Any help would be appreciated.
Thank you.
c++ qt deployment build release
add a comment |
Using QT creator 4.7.1 I make a new qt widgets application.
I select release mode
then I build the project.
in the release folder, my exe looks like this
now I open the command line and run the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
which results in this
upon attempting to run the exe I get an error message.
So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
I'm new to QT so I'm not sure if I'm making a simple mistake.
Any help would be appreciated.
Thank you.
c++ qt deployment build release
add a comment |
Using QT creator 4.7.1 I make a new qt widgets application.
I select release mode
then I build the project.
in the release folder, my exe looks like this
now I open the command line and run the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
which results in this
upon attempting to run the exe I get an error message.
So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
I'm new to QT so I'm not sure if I'm making a simple mistake.
Any help would be appreciated.
Thank you.
c++ qt deployment build release
Using QT creator 4.7.1 I make a new qt widgets application.
I select release mode
then I build the project.
in the release folder, my exe looks like this
now I open the command line and run the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
which results in this
upon attempting to run the exe I get an error message.
So I did a bit of research and found many sources talking about copying different dll's from mingw730_64 an other but none of these worked for me.
I'm new to QT so I'm not sure if I'm making a simple mistake.
Any help would be appreciated.
Thank you.
c++ qt deployment build release
c++ qt deployment build release
edited Nov 15 '18 at 14:43
TrebuchetMS
2,90511025
2,90511025
asked Nov 15 '18 at 8:12
Dylan RobertsonDylan Robertson
867
867
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
Have you tried the Qt Windows deployment tool?
http://doc.qt.io/qt-5/windows-deployment.html
You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.
add a comment |
I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.
To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.
Please try to download this
https://github.com/denisgottardello/BackupTo
and have a look at the qt.conf file, resource file and .pro file.
add a comment |
Ok, i solved it, apparently the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
didn't work due to the version incompatibility between the qt build version and the windeployqt.exe
to find your right version check your build settings :
and navigate to the qt version, and find "windeployqt.exe"
mine was located here: F:QT5.12.0msvc2017_64bin
now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314957%2ftrouble-deploying-qt-exe-for-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Have you tried the Qt Windows deployment tool?
http://doc.qt.io/qt-5/windows-deployment.html
You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.
add a comment |
Have you tried the Qt Windows deployment tool?
http://doc.qt.io/qt-5/windows-deployment.html
You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.
add a comment |
Have you tried the Qt Windows deployment tool?
http://doc.qt.io/qt-5/windows-deployment.html
You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.
Have you tried the Qt Windows deployment tool?
http://doc.qt.io/qt-5/windows-deployment.html
You drag the exe of your program over the WinDeploy.exe tool, then it resolves anything. There is similar for linux too.
answered Nov 15 '18 at 8:49
Ilian ZapryanovIlian Zapryanov
3851414
3851414
add a comment |
add a comment |
I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.
To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.
Please try to download this
https://github.com/denisgottardello/BackupTo
and have a look at the qt.conf file, resource file and .pro file.
add a comment |
I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.
To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.
Please try to download this
https://github.com/denisgottardello/BackupTo
and have a look at the qt.conf file, resource file and .pro file.
add a comment |
I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.
To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.
Please try to download this
https://github.com/denisgottardello/BackupTo
and have a look at the qt.conf file, resource file and .pro file.
I suggest you to use Qt built with msvc 2015 32 to have the Qt applications working on Windows 2012 (32/64) up to now, and Windows 7 (32/64) up to now, but this is not the answer of your question.
To help you how to know which are the required dlls please use the application windeployqt in the bin subfolder of Qt framework.
Passing as argument your exe, the utility will copy the required dlls and plugins in your exe subfolder.
After please have a look ad the qt.conf file. This is a file used by Qt application to know where the plugins are stored and other stuffs.
Please try to download this
https://github.com/denisgottardello/BackupTo
and have a look at the qt.conf file, resource file and .pro file.
answered Nov 15 '18 at 8:21
Denis GottardelloDenis Gottardello
363
363
add a comment |
add a comment |
Ok, i solved it, apparently the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
didn't work due to the version incompatibility between the qt build version and the windeployqt.exe
to find your right version check your build settings :
and navigate to the qt version, and find "windeployqt.exe"
mine was located here: F:QT5.12.0msvc2017_64bin
now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's
add a comment |
Ok, i solved it, apparently the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
didn't work due to the version incompatibility between the qt build version and the windeployqt.exe
to find your right version check your build settings :
and navigate to the qt version, and find "windeployqt.exe"
mine was located here: F:QT5.12.0msvc2017_64bin
now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's
add a comment |
Ok, i solved it, apparently the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
didn't work due to the version incompatibility between the qt build version and the windeployqt.exe
to find your right version check your build settings :
and navigate to the qt version, and find "windeployqt.exe"
mine was located here: F:QT5.12.0msvc2017_64bin
now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's
Ok, i solved it, apparently the command
windeployqt.exe C:UsersroberDesktopbuild-testingqtrelease-Desktop_Qt_5_11_2_MSVC2017_64bit-Releasereleasetestingqtrelease.exe
didn't work due to the version incompatibility between the qt build version and the windeployqt.exe
to find your right version check your build settings :
and navigate to the qt version, and find "windeployqt.exe"
mine was located here: F:QT5.12.0msvc2017_64bin
now, simply drag the qt, compiled exe onto the "windeployqt.exe" and it should download the appropriate dll's
answered Nov 15 '18 at 9:33
Dylan RobertsonDylan Robertson
867
867
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53314957%2ftrouble-deploying-qt-exe-for-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown