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, looks ok, but no files transferred
Forum Updated to NodeBB v4.3 + New Features

windeployqt, looks ok, but no files transferred

Scheduled Pinned Locked Moved Solved Installation and Deployment
80 Posts 4 Posters 27.0k 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.
  • SPlattenS SPlatten

    @jsulm, I can't the laptop is locked down by the company that owns it's IT department, no I can't upgrade either, the version of Qt is old I know, thats what I have to use.

    J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #36

    @SPlatten said in windeployqt, looks ok, but no files transferred:

    the version of Qt is old I know, thats what I have to use.

    can you use the 64 bit version of it?


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    SPlattenS 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      @SPlatten said in windeployqt, looks ok, but no files transferred:

      the version of Qt is old I know, thats what I have to use.

      can you use the 64 bit version of it?

      SPlattenS Offline
      SPlattenS Offline
      SPlatten
      wrote on last edited by
      #37

      @J-Hilk , thats what I'm trying to do with the batch file and specifying the location of the 32bit dll's because the application is compiled for 32bit it needs the 32bit dll's.

      Kind Regards,
      Sy

      jsulmJ J.HilkJ 2 Replies Last reply
      0
      • SPlattenS SPlatten

        @J-Hilk , thats what I'm trying to do with the batch file and specifying the location of the 32bit dll's because the application is compiled for 32bit it needs the 32bit dll's.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #38

        @SPlatten I think what @J-Hilk is suggesting is to use 64bit Qt instead of 32bit

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

        1 Reply Last reply
        0
        • SPlattenS SPlatten

          @J-Hilk , thats what I'm trying to do with the batch file and specifying the location of the 32bit dll's because the application is compiled for 32bit it needs the 32bit dll's.

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #39

          @SPlatten said in windeployqt, looks ok, but no files transferred:

          thats what I'm trying to do with the batch file and specifying the location of the 32bit dll's because the application is compiled for 32bit it needs the 32bit dll's.

          thats what I meant, can't you compile it for 64 bit?

          let windeployqt do its job with that one -> verify it works as standalone -> Copy files manually for the 32 bit version, using the 64 bit folder as template


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          SPlattenS 1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @SPlatten said in windeployqt, looks ok, but no files transferred:

            thats what I'm trying to do with the batch file and specifying the location of the 32bit dll's because the application is compiled for 32bit it needs the 32bit dll's.

            thats what I meant, can't you compile it for 64 bit?

            let windeployqt do its job with that one -> verify it works as standalone -> Copy files manually for the 32 bit version, using the 64 bit folder as template

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #40

            @J-Hilk, the target has to be what it is.

            Kind Regards,
            Sy

            KroMignonK J.HilkJ 2 Replies Last reply
            0
            • SPlattenS SPlatten

              @J-Hilk, the target has to be what it is.

              KroMignonK Offline
              KroMignonK Offline
              KroMignon
              wrote on last edited by
              #41

              @SPlatten said in windeployqt, looks ok, but no files transferred:

              the target has to be what it is.

              Okay, so windeployqt 32 bit seems to be corrupt.
              And you cannot reinstall Qt because of IT issues.
              So @J-Hilk idea is to build with Qt 64 bit, use windeployqt 64 bit to find out the required libs/plugins and than do by hand the same for 32 bit.

              It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

              1 Reply Last reply
              0
              • SPlattenS SPlatten

                @J-Hilk, the target has to be what it is.

                J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on last edited by
                #42

                @SPlatten said in windeployqt, looks ok, but no files transferred:

                @J-Hilk, the target has to be what it is.

                let windeployqt do its job with that one -> verify it works as standalone -> Copy files manually for the 32 bit version, using the 64 bit folder as template -> pray


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                SPlattenS 2 Replies Last reply
                0
                • J.HilkJ J.Hilk

                  @SPlatten said in windeployqt, looks ok, but no files transferred:

                  @J-Hilk, the target has to be what it is.

                  let windeployqt do its job with that one -> verify it works as standalone -> Copy files manually for the 32 bit version, using the 64 bit folder as template -> pray

                  SPlattenS Offline
                  SPlattenS Offline
                  SPlatten
                  wrote on last edited by
                  #43

                  @J-Hilk , I will git it a go.

                  Kind Regards,
                  Sy

                  KroMignonK 1 Reply Last reply
                  0
                  • SPlattenS SPlatten

                    @J-Hilk , I will git it a go.

                    KroMignonK Offline
                    KroMignonK Offline
                    KroMignon
                    wrote on last edited by KroMignon
                    #44

                    @SPlatten said in windeployqt, looks ok, but no files transferred:

                    I will git it a go.

                    As alternative, you could:

                    • try to get windeployqt 32 bit from an other installation
                    • try to install this Qt version on an other machine (maybe VM) and copy the windeployqt to your machine.
                    • try to rebuild windeployqt from sources - (install path/Src/Tools/windeployqt)

                    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                    1 Reply Last reply
                    0
                    • J.HilkJ J.Hilk

                      @SPlatten said in windeployqt, looks ok, but no files transferred:

                      @J-Hilk, the target has to be what it is.

                      let windeployqt do its job with that one -> verify it works as standalone -> Copy files manually for the 32 bit version, using the 64 bit folder as template -> pray

                      SPlattenS Offline
                      SPlattenS Offline
                      SPlatten
                      wrote on last edited by
                      #45

                      @J-Hilk , back around to the same problem again:
                      98d9c941-2953-466a-8aea-5f349c8b7088-image.png

                      Kind Regards,
                      Sy

                      KroMignonK 1 Reply Last reply
                      0
                      • SPlattenS SPlatten

                        @J-Hilk , back around to the same problem again:
                        98d9c941-2953-466a-8aea-5f349c8b7088-image.png

                        KroMignonK Offline
                        KroMignonK Offline
                        KroMignon
                        wrote on last edited by
                        #46

                        @SPlatten said in windeployqt, looks ok, but no files transferred:

                        back around to the same problem again:

                        Do you have this error with the 64 bit or 32 bit version of your application?

                        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                        SPlattenS 1 Reply Last reply
                        0
                        • KroMignonK KroMignon

                          @SPlatten said in windeployqt, looks ok, but no files transferred:

                          back around to the same problem again:

                          Do you have this error with the 64 bit or 32 bit version of your application?

                          SPlattenS Offline
                          SPlattenS Offline
                          SPlatten
                          wrote on last edited by
                          #47

                          @KroMignon , thats after installing with the 64 bit installer, I checked the DLL's and they look identical sizes to the 32 bit versions so I think they are the 32bit DLL's...but I can't run the application from the terminal.

                          Kind Regards,
                          Sy

                          KroMignonK 1 Reply Last reply
                          0
                          • SPlattenS SPlatten

                            @KroMignon , thats after installing with the 64 bit installer, I checked the DLL's and they look identical sizes to the 32 bit versions so I think they are the 32bit DLL's...but I can't run the application from the terminal.

                            KroMignonK Offline
                            KroMignonK Offline
                            KroMignon
                            wrote on last edited by
                            #48

                            @SPlatten said in windeployqt, looks ok, but no files transferred:

                            thats after installing with the 64 bit installer, I checked the DLL's and they look identical sizes to the 32 bit versions so I think they are the 32bit DLL's...but I can't run the application from the terminal.

                            Out of curiosity, did you try to check dependencies with dependencywalker?
                            It is ZIP archive, there is no need to install so you should be able to use it and check if there are missed dependencies.

                            It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                            SPlattenS 1 Reply Last reply
                            0
                            • KroMignonK KroMignon

                              @SPlatten said in windeployqt, looks ok, but no files transferred:

                              thats after installing with the 64 bit installer, I checked the DLL's and they look identical sizes to the 32 bit versions so I think they are the 32bit DLL's...but I can't run the application from the terminal.

                              Out of curiosity, did you try to check dependencies with dependencywalker?
                              It is ZIP archive, there is no need to install so you should be able to use it and check if there are missed dependencies.

                              SPlattenS Offline
                              SPlattenS Offline
                              SPlatten
                              wrote on last edited by
                              #49

                              @KroMignon said in windeployqt, looks ok, but no files transferred:

                              dependencywalker

                              No, not sure if I will be able to install it either.

                              Kind Regards,
                              Sy

                              KroMignonK 1 Reply Last reply
                              0
                              • SPlattenS SPlatten

                                @KroMignon said in windeployqt, looks ok, but no files transferred:

                                dependencywalker

                                No, not sure if I will be able to install it either.

                                KroMignonK Offline
                                KroMignonK Offline
                                KroMignon
                                wrote on last edited by
                                #50

                                @SPlatten said in windeployqt, looks ok, but no files transferred:

                                No, not sure if I will be able to install it either.

                                It is a ZIP archive, you only have to extract it and run the exe. I think this should not be a problem.

                                It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                SPlattenS 1 Reply Last reply
                                1
                                • KroMignonK KroMignon

                                  @SPlatten said in windeployqt, looks ok, but no files transferred:

                                  No, not sure if I will be able to install it either.

                                  It is a ZIP archive, you only have to extract it and run the exe. I think this should not be a problem.

                                  SPlattenS Offline
                                  SPlattenS Offline
                                  SPlatten
                                  wrote on last edited by SPlatten
                                  #51

                                  @KroMignon , I've been having so many problems with windeployqt that I've chosen to try and do it another way, I've created a batch file and copied all the 32bit DLL's into the install folder:

                                  @ECHO off
                                  @ECHO Trainer Application Installer
                                  REM Install services and applications
                                  @ECHO Installing MariaDB
                                  START /wait C:\Windows\System32\msiexec /i mariadb-10.5.9-win32.msi PASSWORD=PASSWORD SERVICENAME=MariaDB /qn
                                  @ECHO Installing MySQL/MariaDB Connector-C 6.1.5
                                  START /wait C:\Windows\System32\msiexec /i mysql-connector-c-6.1.5-win32.msi /qn
                                  @ECHO Importing Trainer database from SQL source...
                                  MYSQL -u root -pPassword --force < trainer.sql
                                  @ECHO Installing Trainer application and dll's
                                  SET INSTFLDR=%USERPROFILE%\Trainer
                                  IF NOT EXIST %INSTFLDR% MKDIR %USERPROFILE%\Trainer
                                  XCOPY *.* %INSTFLDR% /E /S
                                  @ECHO Complete...
                                  

                                  This works ok, MariaDB is installed as a service and running, the connector is installed and the database is imported from the SQL file.

                                  When I try to launch the application I'm getting:

                                  This application failed to start because it could not find or load the Qt platform plugin "windows"
                                  in "".
                                   
                                  Available platform plugins are: direct2d, minimal, offscreen, windows.
                                   
                                  Reinstalling the application may fix this problem.
                                  

                                  All the DLL's are in the same location as the EXE so what do I need to do now to satisfy this?

                                  Kind Regards,
                                  Sy

                                  KroMignonK 1 Reply Last reply
                                  0
                                  • SPlattenS SPlatten

                                    @KroMignon , I've been having so many problems with windeployqt that I've chosen to try and do it another way, I've created a batch file and copied all the 32bit DLL's into the install folder:

                                    @ECHO off
                                    @ECHO Trainer Application Installer
                                    REM Install services and applications
                                    @ECHO Installing MariaDB
                                    START /wait C:\Windows\System32\msiexec /i mariadb-10.5.9-win32.msi PASSWORD=PASSWORD SERVICENAME=MariaDB /qn
                                    @ECHO Installing MySQL/MariaDB Connector-C 6.1.5
                                    START /wait C:\Windows\System32\msiexec /i mysql-connector-c-6.1.5-win32.msi /qn
                                    @ECHO Importing Trainer database from SQL source...
                                    MYSQL -u root -pPassword --force < trainer.sql
                                    @ECHO Installing Trainer application and dll's
                                    SET INSTFLDR=%USERPROFILE%\Trainer
                                    IF NOT EXIST %INSTFLDR% MKDIR %USERPROFILE%\Trainer
                                    XCOPY *.* %INSTFLDR% /E /S
                                    @ECHO Complete...
                                    

                                    This works ok, MariaDB is installed as a service and running, the connector is installed and the database is imported from the SQL file.

                                    When I try to launch the application I'm getting:

                                    This application failed to start because it could not find or load the Qt platform plugin "windows"
                                    in "".
                                     
                                    Available platform plugins are: direct2d, minimal, offscreen, windows.
                                     
                                    Reinstalling the application may fix this problem.
                                    

                                    All the DLL's are in the same location as the EXE so what do I need to do now to satisfy this?

                                    KroMignonK Offline
                                    KroMignonK Offline
                                    KroMignon
                                    wrote on last edited by
                                    #52

                                    @SPlatten said in windeployqt, looks ok, but no files transferred:

                                    All the DLL's are in the same location as the EXE so what do I need to do now to satisfy this?

                                    the problem here is the directory structure.
                                    You also need to have the plugins in the right directory. The "brute force" way would be to copy the directory <qt_kit>/plugins content in to your install directory: copy /s/e/y %QT_KIT_DIR%\plugin\* %DEPLOY_DIR%

                                    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                    SPlattenS 1 Reply Last reply
                                    0
                                    • KroMignonK KroMignon

                                      @SPlatten said in windeployqt, looks ok, but no files transferred:

                                      All the DLL's are in the same location as the EXE so what do I need to do now to satisfy this?

                                      the problem here is the directory structure.
                                      You also need to have the plugins in the right directory. The "brute force" way would be to copy the directory <qt_kit>/plugins content in to your install directory: copy /s/e/y %QT_KIT_DIR%\plugin\* %DEPLOY_DIR%

                                      SPlattenS Offline
                                      SPlattenS Offline
                                      SPlatten
                                      wrote on last edited by SPlatten
                                      #53

                                      @KroMignon , when I first encountered this issue, the dll's were in individual directories, I moved them in an effort to fix it, it didn't.

                                      Is your suggestion to recreate this structure? I don't see the environment variable QT_KIT_DIR. This was the original structure:
                                      81e52012-7b2d-4c05-8454-de44b2dd2048-image.png

                                      Kind Regards,
                                      Sy

                                      KroMignonK 2 Replies Last reply
                                      0
                                      • SPlattenS SPlatten

                                        @KroMignon , when I first encountered this issue, the dll's were in individual directories, I moved them in an effort to fix it, it didn't.

                                        Is your suggestion to recreate this structure? I don't see the environment variable QT_KIT_DIR. This was the original structure:
                                        81e52012-7b2d-4c05-8454-de44b2dd2048-image.png

                                        KroMignonK Offline
                                        KroMignonK Offline
                                        KroMignon
                                        wrote on last edited by
                                        #54

                                        @SPlatten said in windeployqt, looks ok, but no files transferred:

                                        when I first encountered this issue, the dll's were in individual directories, I moved them in an effort to fix it, it didn't.
                                        Is your suggestion to recreate this structure? I don't see the environment variable QT_KIT_DIR.

                                        Sorry, I was a little bit 'untidy'. For me QT_KIT_DIR means the path to the Qt kit you have used to compile the binary:

                                        @ECHO off
                                        @ECHO Trainer Application Installer
                                        REM Install services and applications
                                        @ECHO Installing MariaDB
                                        START /wait C:\Windows\System32\msiexec /i mariadb-10.5.9-win32.msi PASSWORD=PASSWORD SERVICENAME=MariaDB /qn
                                        @ECHO Installing MySQL/MariaDB Connector-C 6.1.5
                                        START /wait C:\Windows\System32\msiexec /i mysql-connector-c-6.1.5-win32.msi /qn
                                        @ECHO Importing Trainer database from SQL source...
                                        MYSQL -u root -pPassword --force < trainer.sql
                                        @ECHO Installing Trainer application and dll's
                                        SET INSTFLDR=%USERPROFILE%\Trainer
                                        IF NOT EXIST %INSTFLDR% MKDIR %USERPROFILE%\Trainer
                                        XCOPY *.* %INSTFLDR% /E /S
                                        SET QT5.9.2=C:\Qt\Qt5.9.2\5.9.2\msvc2015
                                        XCOPY %QT5.9.2%\plugin\* %INSTFLDR% /E /S
                                        @ECHO Complete...
                                        

                                        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                        1 Reply Last reply
                                        0
                                        • SPlattenS SPlatten

                                          @KroMignon , when I first encountered this issue, the dll's were in individual directories, I moved them in an effort to fix it, it didn't.

                                          Is your suggestion to recreate this structure? I don't see the environment variable QT_KIT_DIR. This was the original structure:
                                          81e52012-7b2d-4c05-8454-de44b2dd2048-image.png

                                          KroMignonK Offline
                                          KroMignonK Offline
                                          KroMignon
                                          wrote on last edited by KroMignon
                                          #55

                                          @SPlatten said in windeployqt, looks ok, but no files transferred:

                                          when I first encountered this issue, the dll's were in individual directories, I moved them in an effort to fix it, it didn't.

                                          This directory struct is mandatory.
                                          According to your error message there is no "qwindows.dll" in "platforms" sub-directory.

                                          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                                          SPlattenS 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