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. Windeployqt failes
Forum Updated to NodeBB v4.3 + New Features

Windeployqt failes

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
windeployqtmsvc
8 Posts 2 Posters 4.7k 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.
  • A Offline
    A Offline
    AndersDK
    wrote on 11 Oct 2017, 08:34 last edited by A Former User
    #1

    Hello

    I'm trying to use windeployqt.exe. When I run it I get the following errors:

    C:\Qt\5.9.1\msvc2015_64\bin\windeployqt.exe C:/Users/dandn/Documents/Qt/build-DeployTest-Desktop_Qt_5_9_1_MSVC2015_64bit-Release/release/DeployTest.exe
    Warning: Unable to read C:\Users\dandn\AppData\Local\Continuum\Anaconda3\Library\bin\mkspecs\qconfig.pri: The path was not found.
    Unable to find dependent libraries of C:\Users\dandn\AppData\Local\Continuum\Anaconda3\Library\bin\bin\Qt5Widgets.dll :Cannot open 'C:/Users/dandn/AppData/Local/Continuum/Anaconda3/Library/bin/bin/Qt5Widgets.dll': The path was not found.

    It is correct that this path does not exist. However I have no idea why it even should look in my python anaconda install folder, instead of the Qt folder with binaries. When i then tried to create the missing folder and copy all dll's to that fodler the error disappered, however then i got an error that it could not find the platform plugin, so I can't get windeployqt running no matter what I try.

    Anybody can help me get it working?

    J 1 Reply Last reply 11 Oct 2017, 10:18
    0
    • A AndersDK
      11 Oct 2017, 08:34

      Hello

      I'm trying to use windeployqt.exe. When I run it I get the following errors:

      C:\Qt\5.9.1\msvc2015_64\bin\windeployqt.exe C:/Users/dandn/Documents/Qt/build-DeployTest-Desktop_Qt_5_9_1_MSVC2015_64bit-Release/release/DeployTest.exe
      Warning: Unable to read C:\Users\dandn\AppData\Local\Continuum\Anaconda3\Library\bin\mkspecs\qconfig.pri: The path was not found.
      Unable to find dependent libraries of C:\Users\dandn\AppData\Local\Continuum\Anaconda3\Library\bin\bin\Qt5Widgets.dll :Cannot open 'C:/Users/dandn/AppData/Local/Continuum/Anaconda3/Library/bin/bin/Qt5Widgets.dll': The path was not found.

      It is correct that this path does not exist. However I have no idea why it even should look in my python anaconda install folder, instead of the Qt folder with binaries. When i then tried to create the missing folder and copy all dll's to that fodler the error disappered, however then i got an error that it could not find the platform plugin, so I can't get windeployqt running no matter what I try.

      Anybody can help me get it working?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 11 Oct 2017, 10:18 last edited by
      #2

      @AndersDK Did you add your Anaconda installation to PATH?

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AndersDK
        wrote on 11 Oct 2017, 11:07 last edited by
        #3

        Yes on install I did that. Maybe I shouldn't have done that. I've tried to remove them from the system path, but it seems like it is hardcoded in some place in windeployqt.exe I can't find.

        J 1 Reply Last reply 11 Oct 2017, 13:38
        0
        • A AndersDK
          11 Oct 2017, 11:07

          Yes on install I did that. Maybe I shouldn't have done that. I've tried to remove them from the system path, but it seems like it is hardcoded in some place in windeployqt.exe I can't find.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 11 Oct 2017, 13:38 last edited by
          #4

          @AndersDK said in windeployqt failes:

          but it seems like it is hardcoded in some place in windeployqt.exe

          How could C:\Users\dandn\AppData\Local\Continuum\Anaconda3\Library\bin\bin\ be hardcoded in windeployqt.exe ?

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AndersDK
            wrote on 12 Oct 2017, 08:50 last edited by
            #5

            No idea. I guess I was a bit unclear. It is not hardcoded into the exe. But it does not depend on the system path, it must be some where else i guess. When i go to the folder and run windeploy directly in the Qt folder it seems to work, so thats great.

            It don't get all dlls however. I use docxfactory, and it does not find these dlls. Are there anyway to tell Qt that it should include these as well?

            Of cause it does not take all the dll from system32 that is needed, however, how do I make sure that the persons getting the program have all the needed dlls?

            J 1 Reply Last reply 12 Oct 2017, 12:34
            0
            • A AndersDK
              12 Oct 2017, 08:50

              No idea. I guess I was a bit unclear. It is not hardcoded into the exe. But it does not depend on the system path, it must be some where else i guess. When i go to the folder and run windeploy directly in the Qt folder it seems to work, so thats great.

              It don't get all dlls however. I use docxfactory, and it does not find these dlls. Are there anyway to tell Qt that it should include these as well?

              Of cause it does not take all the dll from system32 that is needed, however, how do I make sure that the persons getting the program have all the needed dlls?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 12 Oct 2017, 12:34 last edited by
              #6

              @AndersDK It depends on what DLLs those are. Probably those are from Microsoft C++ runtime?

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

              A 1 Reply Last reply 13 Oct 2017, 08:32
              0
              • J jsulm
                12 Oct 2017, 12:34

                @AndersDK It depends on what DLLs those are. Probably those are from Microsoft C++ runtime?

                A Offline
                A Offline
                AndersDK
                wrote on 13 Oct 2017, 08:32 last edited by
                #7

                @jsulm Yeah probably. From dependency walker i can see: MSVCP140, KERNEL32, VCRUNTIME140, SHELL32. These also has a lot of dendencies. I know all have KERNEL32, but in general how can I know which they will have? And since the dll they have also depends on dlls which of these they have (I guess since they have them, they must have them?)

                J 1 Reply Last reply 13 Oct 2017, 08:34
                0
                • A AndersDK
                  13 Oct 2017, 08:32

                  @jsulm Yeah probably. From dependency walker i can see: MSVCP140, KERNEL32, VCRUNTIME140, SHELL32. These also has a lot of dendencies. I know all have KERNEL32, but in general how can I know which they will have? And since the dll they have also depends on dlls which of these they have (I guess since they have them, they must have them?)

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 13 Oct 2017, 08:34 last edited by
                  #8

                  @AndersDK Not sure how to handle this (I don't do much on Windows). The correct runtime package from Microsoft must be installed on users machine. I do not know whether Microsoft allows to distribute this runtime. If not your installer could maybe download it from Microsoft if it is not installed and install then.

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

                  1 Reply Last reply
                  0

                  5/8

                  12 Oct 2017, 08:50

                  • Login

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