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. move qt files to subdirectory
Qt 6.11 is out! See what's new in the release blog

move qt files to subdirectory

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
16 Posts 2 Posters 4.2k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    See the qt.conf documentation.

    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
    2
    • MegamouseM Offline
      MegamouseM Offline
      Megamouse
      wrote on last edited by
      #3

      I understand how I can change the default plugin path with the .conf or the static function, and moving the files there and running the app does indeed work.
      Also I can see that I can change the path with --plugindir <path> in windeployqt.
      But doing so won't deploy them to that directory at all.

      Is there something I'm missing?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Sorry, I haven't used that option from windeployqt.

        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
        0
        • MegamouseM Offline
          MegamouseM Offline
          Megamouse
          wrote on last edited by
          #5

          So i figured it out with
          --plugindir $(TargetDir)\qtplugins
          in the VS properties.

          But now it complains about the windows plugin not being found (platforms folder is now also in the plugins folder).

          1 Reply Last reply
          0
          • MegamouseM Offline
            MegamouseM Offline
            Megamouse
            wrote on last edited by
            #6

            nevermind... I was being stupid.
            It should be
            --plugindir $(TargetDir)\plugins
            since qtplugins would need to be added to the librarypaths first.

            1 Reply Last reply
            1
            • MegamouseM Offline
              MegamouseM Offline
              Megamouse
              wrote on last edited by
              #7

              now the only thing left are the qt module dlls

              1 Reply Last reply
              0
              • MegamouseM Offline
                MegamouseM Offline
                Megamouse
                wrote on last edited by
                #8

                So I got it to deploy the dlls (Qt5Core.dll ...) to a subfolder with
                --libdir $(TargetDir)\qt\libs
                And added that path to the qt.conf file.
                It works fine in visual studio, but when I run the exe itself it still misses those dlls

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  Did you check your qt.conf file ?

                  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
                  1
                  • MegamouseM Offline
                    MegamouseM Offline
                    Megamouse
                    wrote on last edited by
                    #10

                    of course.

                    Windows seems to look for those dlls at execution.

                    This means I did nothing wrong, but I think it's just not possible without adding those dlls to PATH similar on windows side.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      Can you show your folder layout and qt.conf file content ?

                      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
                      0
                      • MegamouseM Offline
                        MegamouseM Offline
                        Megamouse
                        wrote on last edited by Megamouse
                        #12

                        This is the not working layout.
                        Moving the contents of libs back to the appdir and removing the Libraries entry from the .conf and windeployqt works fine.

                        [Paths]
                        Prefix = qt/
                        Plugins = plugins
                        Libraries = libs
                        

                        0_1526556170261_00f01a43-d4ac-4bd5-8ed5-fd0cbb1ccc69-image.png
                        0_1526556157500_f6dae237-2c3a-4222-ab5c-274330e775df-image.png
                        0_1526556127081_0b6b8bb2-daff-4259-ac77-5fa19a3fd098-image.png
                        0_1526556144142_5e41957a-1d8d-4e36-82d3-2b82639db4d1-image.png

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

                          Are you using windeployqt with all options to set the paths you want to use ?

                          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
                          0
                          • MegamouseM Offline
                            MegamouseM Offline
                            Megamouse
                            wrote on last edited by
                            #14

                            --libdir $(TargetDir)\qt\libs --plugindir $(TargetDir)\qt\plugins

                            the deploy works fine.
                            also plugins are found.
                            but windows can't find the other dlls.

                            I guess it's simply not possible or Qt/Windows isn't supporting this yet

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #15

                              What if you use lib in place of libs ?

                              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
                              0
                              • MegamouseM Offline
                                MegamouseM Offline
                                Megamouse
                                wrote on last edited by
                                #16

                                I can't imagine that would make any difference. I redefine the folder to libs, so lib should be irrelevant. Also I am 100% sure I tried that anyway.

                                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