Unsolved CQtDeployer
-
I opened the CQtDeployer in my Qt Creator but it gave me the following error:
Error while building/deploying project CQtDeployer (kit: Desktop Qt 5.12.3 MSVC2017 32bit) The kit Desktop Qt 5.12.3 MSVC2017 32bit has configuration issues which might be the root cause for this problem. When executing step "qmake"
does anyone know how to fix this problem?
I have absolutely no experience with qt deployment...
-
@hobbyProgrammer said in CQtDeployer:
does anyone know how to fix this problem?
Your Kit is broken.
Open it in QtCreator (Tools/Options/Kits) and see what errors/warnings are shown there.
Did you install Vsual Studio as you're using Qt for MSVC2017? And if you did, did you also select C++ stuff during installation? -
@jsulm I have Visual Studio installed and I did select C++ stuff during installation. The same kit works for other project.
-
Is CQtDeployer an official Qt Tool?
If yes, than I haven't heard of it (shame on me)
the "normal" way it to use the windeployqt tool
-
-
@hobbyProgrammer ah linux, not really my forte š
however the few times I made an application for it, I used
https://github.com/probonopd/linuxdeployqt -
@J-Hilk can you use this on windows? Or do I need to deploy with this tool in Linux?
-
@hobbyProgrammer windeployqt for windows and linuxdeployqt for linux and macdeployqr for macOS š
like the names suggest
-
@J-Hilk yes, I understand that I should use those, but do I need a mac in order to deploy my application for mac?
Or am I also able to deploy for mac on a windows pc? -
@hobbyProgrammer said in CQtDeployer:
Or am I also able to deploy for mac on a windows pc?
No, you need a Mac to even build for Mac...
-
yes, I understand that I should use those, but do I need a mac in order to deploy my application for Mac
Definitely, no way around it.
For Windows <-> Linux there are some cross platform compilers (but setting that up can be a pain as well, there isn't one for OSX
-
@J-Hilk okay, then I'll just try to deploy using windeployqt, linuxdeployqt and macdeployqt. Linuxdeployqt gives me an error. Error 340 'The host system is too new'. Has anyone ever had that? Should I install an older version of Ubuntu and/or Qt?
(I am using Ubuntu 18.04.3 and Qt 5.13.1) -
Hi,
Search the issue list of the linuxdeployqt project. There's the rational behind the message and how to continue anyway explained.
-
@hobbyProgrammer
Hello
I am the author of the QtDeployer utility. This utility was written specifically to solve the problems you are trying to solve.
However, at the moment, the utility can create distributions only from the already created qt components.
this means that you must:- Prepare the qt framework assembly using a cross-platform compiler.
- Build your project using a cross-platform compiler with the qt framework created in the 1st step.
- Using cqtdeployer to collect all dependencies into one distribution.
For the third step, only the cqtdeployer utility is suitable, because it is the only one that has its own ELF PE and QML parsers.
In the process of developing my programs, I use a Linux-based server to create applications for Windows and Linux.You are not the first to try this way, so Iām thinking of writing an article on how to deploy applications on the same host for different platforms.