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