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
QtWS25 Last Chance

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 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?

    jsulmJ 1 Reply Last reply
    0
    • A AndersDK

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 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.

        jsulmJ 1 Reply Last reply
        0
        • A AndersDK

          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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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 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?

            jsulmJ 1 Reply Last reply
            0
            • A AndersDK

              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?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              0
              • jsulmJ jsulm

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

                A Offline
                A Offline
                AndersDK
                wrote on 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?)

                jsulmJ 1 Reply Last reply
                0
                • A AndersDK

                  @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?)

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 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

                  • Login

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