windeployqt, looks ok, but no files transferred
-
@jsulm , ok, but saying that doesn't make it work, how can I use the 32bit windeployqt.exe if it will not run?
@SPlatten Did you try to disable anti-virus software as I suggested before? Just to make sure it is not the cause of the issue.
Check Windows log to see whether there is something helpful.
Also, can you upgrade to a more recent Qt version? -
@SPlatten Did you try to disable anti-virus software as I suggested before? Just to make sure it is not the cause of the issue.
Check Windows log to see whether there is something helpful.
Also, can you upgrade to a more recent Qt version? -
@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.
@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?
-
@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?
-
@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-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.
@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
-
@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
-
@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, usewindeployqt
64 bit to find out the required libs/plugins and than do by hand the same for 32 bit. -
@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 -
@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 -
@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)
-
@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 -
@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?
@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.
-
@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.
@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. -
@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.@KroMignon said in windeployqt, looks ok, but no files transferred:
dependencywalker
No, not sure if I will be able to install it either.
-
@KroMignon said in windeployqt, looks ok, but no files transferred:
dependencywalker
No, not sure if I will be able to install it either.
-
@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.
@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?
-
@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?
@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%
-
@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%
@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: