Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. windeployqt5 looking for dll in qt6 bin
Forum Updated to NodeBB v4.3 + New Features

windeployqt5 looking for dll in qt6 bin

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 3 Posters 1.0k Views 2 Watching
  • 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.
  • R Online
    R Online
    Redman
    wrote on last edited by
    #1

    As the title says:
    0478afa3-ce05-4c3c-89e3-7b4698a58f57-image.png

    I'm trying to deploy a Qt 5.15.2 with windeployqt.exe. As you can see I set up the cmd session. It's still trying to find Qt5.dlls in Qt6\bin folder. Excplicitly telling to look in Qt5\bin folder did not work as seen.

    R 1 Reply Last reply
    0
    • Paul ColbyP Offline
      Paul ColbyP Offline
      Paul Colby
      wrote on last edited by
      #6

      Hi @Redman,

      The most reliable option (since you may not have control over the calling environment, or you may have multiple Qt's in the path, or other scripts might modify it as part of you build processes, etc), is to use the --qmake <path> option directly to point at the qmake of the version you want.

      windeployqt runs qmake internally to read all of the Qt installation details, by running something like qmake -query (try running that yourself, and see what it shows). So if you don't specify the --qmake option, then windeployqt runs whatever qmake it finds in the environment's path.

      Cheers.

      R 1 Reply Last reply
      1
      • R Redman

        As the title says:
        0478afa3-ce05-4c3c-89e3-7b4698a58f57-image.png

        I'm trying to deploy a Qt 5.15.2 with windeployqt.exe. As you can see I set up the cmd session. It's still trying to find Qt5.dlls in Qt6\bin folder. Excplicitly telling to look in Qt5\bin folder did not work as seen.

        R Online
        R Online
        Redman
        wrote on last edited by
        #2

        @Redman I renamed C:\Dev\Qt\6.5.2 to C:\Dev\Qt\6.5.2hidden and it worked... Anyone got an idea where I can configure windeployqt.exe to look into the correct directory?

        Christian EhrlicherC 1 Reply Last reply
        0
        • R Redman

          @Redman I renamed C:\Dev\Qt\6.5.2 to C:\Dev\Qt\6.5.2hidden and it worked... Anyone got an idea where I can configure windeployqt.exe to look into the correct directory?

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

          I would guess C:\Dev\Qt\6.5.2 is in your PATH so it's picked up.

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

          R 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            I would guess C:\Dev\Qt\6.5.2 is in your PATH so it's picked up.

            R Online
            R Online
            Redman
            wrote on last edited by
            #4

            @Christian-Ehrlicher C:\Dev\Qt\6.5.2\msvc2019_64\bin is in my PATH. I did explicitly call the windeployqt in the 5.15.2 folder. I'd really like to know why this did not work

            Christian EhrlicherC 1 Reply Last reply
            0
            • R Redman

              @Christian-Ehrlicher C:\Dev\Qt\6.5.2\msvc2019_64\bin is in my PATH. I did explicitly call the windeployqt in the 5.15.2 folder. I'd really like to know why this did not work

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

              '--dir' set the output directory, not a directory to search Qt. So since Qt 6.5.2 is in your path, qmake from there is picked up and it's using the wrong path.

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

              1 Reply Last reply
              0
              • Paul ColbyP Offline
                Paul ColbyP Offline
                Paul Colby
                wrote on last edited by
                #6

                Hi @Redman,

                The most reliable option (since you may not have control over the calling environment, or you may have multiple Qt's in the path, or other scripts might modify it as part of you build processes, etc), is to use the --qmake <path> option directly to point at the qmake of the version you want.

                windeployqt runs qmake internally to read all of the Qt installation details, by running something like qmake -query (try running that yourself, and see what it shows). So if you don't specify the --qmake option, then windeployqt runs whatever qmake it finds in the environment's path.

                Cheers.

                R 1 Reply Last reply
                1
                • R Redman has marked this topic as solved on
                • Paul ColbyP Paul Colby

                  Hi @Redman,

                  The most reliable option (since you may not have control over the calling environment, or you may have multiple Qt's in the path, or other scripts might modify it as part of you build processes, etc), is to use the --qmake <path> option directly to point at the qmake of the version you want.

                  windeployqt runs qmake internally to read all of the Qt installation details, by running something like qmake -query (try running that yourself, and see what it shows). So if you don't specify the --qmake option, then windeployqt runs whatever qmake it finds in the environment's path.

                  Cheers.

                  R Online
                  R Online
                  Redman
                  wrote on last edited by Redman
                  #7

                  @Paul-Colby This looked promissing at first.
                  Qt5 32bit windeployqt does not know the option --qmake. So there is no way of telling it which one to use so it goes with the Qt6 64bit qmake which is found in my PATH. Manually calling the Qt6 32bit windeployqt for a Qt5 32bit application does not work.

                  So for me the only way seems to be to rename the folder to C:\Dev\Qt6hidden so it does not use the qmake from PATH

                  BTW: --qmake seems to be deprecated and --qpaths should be used. Later is not recognized

                  R 1 Reply Last reply
                  0
                  • R Redman

                    @Paul-Colby This looked promissing at first.
                    Qt5 32bit windeployqt does not know the option --qmake. So there is no way of telling it which one to use so it goes with the Qt6 64bit qmake which is found in my PATH. Manually calling the Qt6 32bit windeployqt for a Qt5 32bit application does not work.

                    So for me the only way seems to be to rename the folder to C:\Dev\Qt6hidden so it does not use the qmake from PATH

                    BTW: --qmake seems to be deprecated and --qpaths should be used. Later is not recognized

                    R Online
                    R Online
                    Redman
                    wrote on last edited by
                    #8

                    @Redman
                    https://bugreports.qt.io/browse/QTBUG-117817

                    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