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 4.1k 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.
  • H Huqis

    I don't know why the console output this error. Yesterday, I was used MSVC compiled qt5.15.9's source code, it's very successful, no errors, and then I installed qtcreater 5.0.3. Today I created a new project(It's my first qt project), I'm click "run qmake",
    finally, complie output an error "dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist."

    Did I have a problem compiling the QT source code or I installed a broke version?

    Who can give me a solution to this problem, please

    JonBJ Online
    JonBJ Online
    JonB
    wrote on last edited by
    #2

    @Huqis
    The d at the end of Qt5Widgetsd.lib means it wants a debug version. Did you compile for debug? Does the file exist at that path, or nearby? Is it concerning that path includes QT590 when you talk about using Qt 5.15? Do you have more than one version of Qt somewhere on that machine?

    H 1 Reply Last reply
    0
    • JonBJ JonB

      @Huqis
      The d at the end of Qt5Widgetsd.lib means it wants a debug version. Did you compile for debug? Does the file exist at that path, or nearby? Is it concerning that path includes QT590 when you talk about using Qt 5.15? Do you have more than one version of Qt somewhere on that machine?

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

      @JonB QT590 is just a directory name, I just intall one qt(5.15), so QT590 not have any meaning. I don't compile for debug, I just choosed release. Primary!!!!!!! I checked qt's lib, I can't find Qt5Widgetsd.lib, is it not complied at I compile Qt source code? should I recompile source code or I should download this .lib file?

      But I wanna know why Imy QT losted this .lib file, I didn't install qt by online install. I compiled and installed it using source compilation, and there were no errors during the compilation process, and I used nmake without any problems

      JonBJ 1 Reply Last reply
      0
      • H Huqis

        @JonB QT590 is just a directory name, I just intall one qt(5.15), so QT590 not have any meaning. I don't compile for debug, I just choosed release. Primary!!!!!!! I checked qt's lib, I can't find Qt5Widgetsd.lib, is it not complied at I compile Qt source code? should I recompile source code or I should download this .lib file?

        But I wanna know why Imy QT losted this .lib file, I didn't install qt by online install. I compiled and installed it using source compilation, and there were no errors during the compilation process, and I used nmake without any problems

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #4

        @Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:

        I don't compile for debug,

        Don't know what you mean. You compiled Qt sources yourself? Then you need to compile for Debug (as well as Release). And/or you are compiling your app for release? I am telling you that Qt5Widgetsd.lib means the debug version of Qt5Widgets.lib. So either you must have that somewhere, or build it, or you must find out what is compiling for debug now which wants to link against it and resolve that.

        H 1 Reply Last reply
        0
        • JonBJ JonB

          @Huqis said in error dependent 'E:\QTT\QT590\lib\Qt5Widgetsd.lib' does not exist:

          I don't compile for debug,

          Don't know what you mean. You compiled Qt sources yourself? Then you need to compile for Debug (as well as Release). And/or you are compiling your app for release? I am telling you that Qt5Widgetsd.lib means the debug version of Qt5Widgets.lib. So either you must have that somewhere, or build it, or you must find out what is compiling for debug now which wants to link against it and resolve that.

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

          @JonB Yes, I compiled Qt sources, but I haven't it anywhere, and I don't know how can build it, so how can I build it or have it, I'm a QT beginner, sorry...

          JonBJ 1 Reply Last reply
          0
          • H Huqis

            @JonB Yes, I compiled Qt sources, but I haven't it anywhere, and I don't know how can build it, so how can I build it or have it, I'm a QT beginner, sorry...

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #6

            @Huqis
            I have never built Qt (I download prebuilt for my Linux distro only), so perhaps someone else can tell you where this is or what you have to do.

            H 1 Reply Last reply
            0
            • JonBJ JonB

              @Huqis
              I have never built Qt (I download prebuilt for my Linux distro only), so perhaps someone else can tell you where this is or what you have to do.

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

              @JonB You use QT in Linux, but I use it in Windows... I tried recompile Qtbase, but it still not generate QT5Widgetsd.lib

              jsulmJ 1 Reply Last reply
              0
              • H Huqis

                @JonB You use QT in Linux, but I use it in Windows... I tried recompile Qtbase, but it still not generate QT5Widgetsd.lib

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

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

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

                H 1 Reply Last reply
                2
                • 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

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved