Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist
Forum Updated to NodeBB v4.3 + New Features

error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
25 Posts 4 Posters 3.9k Views
  • 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.
  • jsulmJ jsulm

    @Huqis If you only build a release version of Qt then you can't build your app in debug mode, build it in release mode.

    H Offline
    H Offline
    Huqis
    wrote on last edited by
    #9

    @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?

    Christian EhrlicherC 1 Reply Last reply
    0
    • H Huqis

      @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?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #10

      @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.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      H 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @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.

        H Offline
        H Offline
        Huqis
        wrote on last edited by
        #11

        @Christian-Ehrlicher Excuse me, I have a problem.... I can't find QT's cmd, should I recompile QT?

        jsulmJ 1 Reply Last reply
        0
        • H Huqis

          @Christian-Ehrlicher Excuse me, I have a problem.... I can't find QT's cmd, should I recompile QT?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #12

          @Huqis You will have Qt cmd if you install official Qt releases using installer.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          H 2 Replies Last reply
          0
          • jsulmJ jsulm

            @Huqis You will have Qt cmd if you install official Qt releases using installer.

            H Offline
            H Offline
            Huqis
            wrote on last edited by
            #13

            @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?

            jsulmJ 1 Reply Last reply
            0
            • H Huqis

              @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?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #14

              @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.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              H 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Huqis You will have Qt cmd if you install official Qt releases using installer.

                H Offline
                H Offline
                Huqis
                wrote on last edited by
                #15

                @jsulm If I have free time, I want to install QT online

                1 Reply Last reply
                0
                • jsulmJ jsulm

                  @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.

                  H Offline
                  H Offline
                  Huqis
                  wrote on last edited by
                  #16

                  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?

                  jsulmJ 1 Reply Last reply
                  0
                  • H Huqis

                    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?

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #17

                    @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.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    H 2 Replies Last reply
                    1
                    • jsulmJ jsulm

                      @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.

                      H Offline
                      H Offline
                      Huqis
                      wrote on last edited by
                      #18

                      How can I do proper deployment., I'm a QT beginner

                      you have to do proper deployment.

                      jsulmJ 1 Reply Last reply
                      0
                      • H Huqis

                        How can I do proper deployment., I'm a QT beginner

                        you have to do proper deployment.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #19

                        @Huqis Like explained here: https://doc.qt.io/qt-6/windows-deployment.html

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @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.

                          H Offline
                          H Offline
                          Huqis
                          wrote on last edited by
                          #20

                          @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 fixed

                          So, you have to do proper deployment.

                          jsulmJ 1 Reply Last reply
                          0
                          • H Huqis

                            @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 fixed

                            So, you have to do proper deployment.

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #21

                            @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?

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            H 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @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?

                              H Offline
                              H Offline
                              Huqis
                              wrote on last edited by
                              #22

                              @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.

                              jsulmJ 1 Reply Last reply
                              0
                              • H Huqis

                                @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.

                                jsulmJ Offline
                                jsulmJ Offline
                                jsulm
                                Lifetime Qt Champion
                                wrote on last edited by
                                #23

                                @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)?

                                https://forum.qt.io/topic/113070/qt-code-of-conduct

                                H 2 Replies Last reply
                                0
                                • jsulmJ jsulm

                                  @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)?

                                  H Offline
                                  H Offline
                                  Huqis
                                  wrote on last edited by
                                  #24

                                  @jsulm I reinstall QT by online installer

                                  1 Reply Last reply
                                  0
                                  • jsulmJ jsulm

                                    @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)?

                                    H Offline
                                    H Offline
                                    Huqis
                                    wrote on last edited by
                                    #25

                                    @jsulm No effect

                                    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