windeployqt.exe looks for library in the wrong place
-
windeployqt (as also qmake and the cmake scripts) expects that all Qt stuff is innstalled with the same prefix which is not in your case.
So install the Qt6Mqtt stuff with the same prefix as the rest.Thanks, do you know how to install Qt6Mqtt on a GitHub runner?
And how it is that works for the qtquick application and not for the console application.
For the qtquick application, Qt6Mqtt is not installed as part of Qt and works.
For the Qt-Windows installation are the .dlls installed in the bin folder or in a lib folder?
If installed in a lib folder windeployqt.exe is looking also in the wrong folder. -
Thanks, do you know how to install Qt6Mqtt on a GitHub runner?
And how it is that works for the qtquick application and not for the console application.
For the qtquick application, Qt6Mqtt is not installed as part of Qt and works.
For the Qt-Windows installation are the .dlls installed in the bin folder or in a lib folder?
If installed in a lib folder windeployqt.exe is looking also in the wrong folder. -
I've opened up https://bugreports.qt.io/browse/QTBUG-116551
I think the CMake API should provide a way to specify arguments to
windeployqt
andmacdeployqt
. -
I've opened up https://bugreports.qt.io/browse/QTBUG-116551
I think the CMake API should provide a way to specify arguments to
windeployqt
andmacdeployqt
.@cristian-adam Thanks, It is a nice thing to have on the CMake API.
-
It seems that the generic deploy tool uses
file(GET_RUNTIME_DEPENDENCIES)
of CMake.The Qt cmake API allows setting variables like
PRE_INCLUDE_REGEXES
.So, I am wondering how to use something like
if(QTDEPLOY) qt_generate_deploy_app_script( TARGET ${example} OUTPUT_SCRIPT deploy_script PRE_INCLUDE_REGEXES "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/*" ) install(SCRIPT ${deploy_script}) endif(QTDEPLOY)
I want to set PRE_INCLUDE_REGEXES to the path the MQTT library was installed.
The best will be to useDIRECTORIES
but I do not see how to pass this from the QT CMake API. -
It seems that the generic deploy tool uses
file(GET_RUNTIME_DEPENDENCIES)
of CMake.The Qt cmake API allows setting variables like
PRE_INCLUDE_REGEXES
.So, I am wondering how to use something like
if(QTDEPLOY) qt_generate_deploy_app_script( TARGET ${example} OUTPUT_SCRIPT deploy_script PRE_INCLUDE_REGEXES "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/*" ) install(SCRIPT ${deploy_script}) endif(QTDEPLOY)
I want to set PRE_INCLUDE_REGEXES to the path the MQTT library was installed.
The best will be to useDIRECTORIES
but I do not see how to pass this from the QT CMake API.This is only available for Linux, on Windows and macOS the
windeployqt
andmacdeployqt
tools are used.Woud be nice to have the generic deploy tool, but AFAIK it's not possible.
Please do create a bugreport at https://bugreports.qt.io/
-
It seems that the generic deploy tool uses
file(GET_RUNTIME_DEPENDENCIES)
of CMake.The Qt cmake API allows setting variables like
PRE_INCLUDE_REGEXES
.So, I am wondering how to use something like
if(QTDEPLOY) qt_generate_deploy_app_script( TARGET ${example} OUTPUT_SCRIPT deploy_script PRE_INCLUDE_REGEXES "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/*" ) install(SCRIPT ${deploy_script}) endif(QTDEPLOY)
I want to set PRE_INCLUDE_REGEXES to the path the MQTT library was installed.
The best will be to useDIRECTORIES
but I do not see how to pass this from the QT CMake API. -
This is only available for Linux, on Windows and macOS the
windeployqt
andmacdeployqt
tools are used.Woud be nice to have the generic deploy tool, but AFAIK it's not possible.
Please do create a bugreport at https://bugreports.qt.io/
@cristian-adam I see for Linux it is called 'generic Qt deploy tool' and use file(GET_RUNTIME_DEPENDENCIES).
Thanks. -
@Mesrine This does not make much sense because windeploy.exe what it does is to populate the install folder with the QT dependencies.
Still, I have not found the windeploy source code to see where it is getting that mqttlibrary path.https://code.qt.io/cgit/qt/qtbase.git/tree/src/tools/windeployqt ist the place for the
windeployqt
source code. -
https://code.qt.io/cgit/qt/qtbase.git/tree/src/tools/windeployqt ist the place for the
windeployqt
source code.