Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Necessary DLLs for Windows deployment.

    General and Desktop
    3
    7
    1274
    Loading More Posts
    • 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.
    • CoreyWhite
      CoreyWhite last edited by

      I was proud of myself when I compiled and run an exe on windows using Qt. Then I moved the executable and all of its DLLs to another computer and it wouldn't run. I spent a few hours on IRC in #Qt and couldn't get an answer that would work. My idea is just to get a list of dependencys from people on this forum for the most basic Qt program. Is this possible? I undetstand that I need to include many DLLs just for C++ by itself, but that shouldn't be a problem!

      Please help me, I'm going crazy for Qt.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Did you already follow this fine wiki "entry":http://qt-project.org/wiki/Deploy_an_Application_on_Windows ?

        Did you try the windeployqt tool ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • CoreyWhite
          CoreyWhite last edited by

          Yes I used that firstly to build my origonal project, but I will try again. I havent tried the windeployqt tool, but someone told me I should. The problem I am having with it is that it only runs in the console, and all the computers I use have the console blocked. Don't ask me why, but it has to do with the library. Do you have any other ideas please?

          Thanks

          1 Reply Last reply Reply Quote 0
          • K
            kenchan last edited by

            Did you solve your problem?
            What I do is either use the windows Dependency walker which I am sure you know about "(depends.exe)..":http://www.dependencywalker.com/
            or,
            I just put my new Qt .exe in a new folder and rename my Qt install folder to something other than its usual name. Run my new .exe and see what dll it says it can't find. I then search the Qt install folder for those missing dlls. You need to be careful because some things need to be in a sub folder of a specific name etc. This is described in the link given by SGaist.

            This is all a bit tedious the first time around but once you get it it does not change much.

            I hope this is of some help to you.

            1 Reply Last reply Reply Quote 0
            • CoreyWhite
              CoreyWhite last edited by

              Thanks, I will try this tommorow. I can only work on this while I am at the public library, right now which is kind of lame. I can't run searches or open up cmd.exe. Any other ideas?

              1 Reply Last reply Reply Quote 0
              • CoreyWhite
                CoreyWhite last edited by

                I'm at the library now, and everything is working fine. I just followed your instructions exactly, and everything compiled.

                1 Reply Last reply Reply Quote 0
                • K
                  kenchan last edited by

                  I am glad I able to be of some help.

                  Happy New Year.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post