error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist
-
@jsulm Ok, I choose release mode, the error is solved, I successfully ran my project, but I really want to debug my app, so how do I do that?
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
so how do I do that?
Compile Qt in debug mode too. Or install a pre compiled Qt version which will contain it automatically.
-
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
so how do I do that?
Compile Qt in debug mode too. Or install a pre compiled Qt version which will contain it automatically.
@Christian-Ehrlicher Excuse me, I have a problem.... I can't find QT's cmd, should I recompile QT?
-
@Christian-Ehrlicher Excuse me, I have a problem.... I can't find QT's cmd, should I recompile QT?
-
@jsulm I wanted to use the windeployqt command to package the .exe file, but I found that when I copied the QT generated file to another directory, I found that I was able to run it directly
Excuse me, I have a problem.... I can't find QT's cmd, should I recompile QT?
-
@jsulm I wanted to use the windeployqt command to package the .exe file, but I found that when I copied the QT generated file to another directory, I found that I was able to run it directly
Excuse me, I have a problem.... I can't find QT's cmd, should I recompile QT?
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
but I found that when I copied the QT generated file to another directory, I found that I was able to run it directly
I don't know what you mean here. Do you mean your application executable? And to which location did you copy it? If you want to run your Qt application on other machines which do not have Qt you have to do proper deployment.
-
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
but I found that when I copied the QT generated file to another directory, I found that I was able to run it directly
I don't know what you mean here. Do you mean your application executable? And to which location did you copy it? If you want to run your Qt application on other machines which do not have Qt you have to do proper deployment.
-
I just copy my application executable to another new folder, that folder haven't any .lib file and .dll file
I don't know what you mean here. Do you mean your application executable? And to which location did you copy it?
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
that folder haven't any .lib file and .dll file
Well, if it is on the machine where Qt is installed it can work, but not on a machine without Qt. And I don't think you want to ask your users to install Qt to make your app work :-) So, you have to do proper deployment.
-
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
that folder haven't any .lib file and .dll file
Well, if it is on the machine where Qt is installed it can work, but not on a machine without Qt. And I don't think you want to ask your users to install Qt to make your app work :-) So, you have to do proper deployment.
-
@Huqis Like explained here: https://doc.qt.io/qt-6/windows-deployment.html
-
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
that folder haven't any .lib file and .dll file
Well, if it is on the machine where Qt is installed it can work, but not on a machine without Qt. And I don't think you want to ask your users to install Qt to make your app work :-) So, you have to do proper deployment.
@jsulm Why do I read other people's posts, they say "windeployqt.exe can't be used on C/C++ executables, or C/C++ executables only need the above 3 basic libraries to run on other machines, and don't use other Qt libraries at all." ”
But I don't know if these three basic libraries are fixedSo, you have to do proper deployment.
-
@jsulm Why do I read other people's posts, they say "windeployqt.exe can't be used on C/C++ executables, or C/C++ executables only need the above 3 basic libraries to run on other machines, and don't use other Qt libraries at all." ”
But I don't know if these three basic libraries are fixedSo, you have to do proper deployment.
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
Why do I read other people's posts, they say "windeployqt.exe can't be used on C/C++ executables
I don't know where you read that.
All I can tell you is that you need to deploy your app and that you can use the windeployqt tool like it is explained in the link I gave you.
"and don't use other Qt libraries at all" - Qt application typically also needs some of the plug-ins, which also needs to be deployed.
A dynamically linked application cannot run without shared libraries it was linked against. This is what deployment is doing: determine which libraries are needed by an executable and copy those next to the executable.
Why don't you simply follow the windeployqt documentation? -
@Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:
Why do I read other people's posts, they say "windeployqt.exe can't be used on C/C++ executables
I don't know where you read that.
All I can tell you is that you need to deploy your app and that you can use the windeployqt tool like it is explained in the link I gave you.
"and don't use other Qt libraries at all" - Qt application typically also needs some of the plug-ins, which also needs to be deployed.
A dynamically linked application cannot run without shared libraries it was linked against. This is what deployment is doing: determine which libraries are needed by an executable and copy those next to the executable.
Why don't you simply follow the windeployqt documentation?@jsulm H:\Cpp-DEV\build-baag-Replacement_for_Desktop_Qt_5_9_0_MSVC2017_64bit-Release\release>windeployqt baag.exe
H:\Cpp-DEV\build-baag-Replacement_for_Desktop_Qt_5_9_0_MSVC2017_64bit-Release\release\baag.exe 64 bit, debug executable
H:\Cpp-DEV\build-baag-Replacement_for_Desktop_Qt_5_9_0_MSVC2017_64bit-Release\release\baag.exe does not seem to be a Qt executable. -
@jsulm H:\Cpp-DEV\build-baag-Replacement_for_Desktop_Qt_5_9_0_MSVC2017_64bit-Release\release>windeployqt baag.exe
H:\Cpp-DEV\build-baag-Replacement_for_Desktop_Qt_5_9_0_MSVC2017_64bit-Release\release\baag.exe 64 bit, debug executable
H:\Cpp-DEV\build-baag-Replacement_for_Desktop_Qt_5_9_0_MSVC2017_64bit-Release\release\baag.exe does not seem to be a Qt executable. -
@Huqis Do you have more than one Qt installation? If so use absolute path to windeployqt.exe.
Do you execute windeployqt.exe inside preconfigured Qt terminal (cmd)? -
@Huqis Do you have more than one Qt installation? If so use absolute path to windeployqt.exe.
Do you execute windeployqt.exe inside preconfigured Qt terminal (cmd)?