How can I deploy from windows to linux ?
-
Hello,
I'm new in Qt, and I created an app from windows, that I want to deploy for windows and linux.
I succeeded with windows, but I didn't find how to deploy my app for Linux. -
@RdXDavidaz Easiest way is to create a virtual machine (for example using VirtualBox), install Linux in that virtual machine, then install build tools and needed libs, install Qt and then build your app.
Check https://doc.qt.io/qt-5/linux.html to see what you need. -
Thank you, I will try this.
-
@RdXDavidaz Were you able to get this working? I am in the same boat (trying to build a simple app to run on a raspberry pi). I just got to the point where I need to get it working on linux and I am feeling very overwhelmed.
-
@nyquistjack Did you see https://wiki.qt.io/Raspberry_Pi_Beginners_Guide ?
Easiest way would be to build directly on Raspberry Pi, else you need to set up a cross compile environment on a Linux system (see above link). -
@jsulm , your proposal of setting up a Linux-VM is not an option for me, because (although being [German] software architect since half a century) I never worked on Linux systems. And I never worked on Macs and/or Smartphone-Systems.
I am working on Windows 10 with MSVC 2022 (with the "Qt Tools Extension") and want to produce Qt-Vulkan-Applications deployment packages (static builds) for all commonly spreaded targets (Windows, Linux, MacOS, iOS, Android). I debug my programs by choosing config "Debug|x64" and create the Windows-deployment package by config "Release|x64".
My "Qt-building" console is Powershell, configured for using MSVC-dev-environment, caring also for all target-specific dependencies/preconditions.
Works fine for Windows-targets, I got the Qt-Vulkan-examples to compile using the Qt-Windows-target-build, to run them, and to deploy them runnable. Now I want to add the MSVC-configurations for "Release-Linux|x64", "Release-Android|Arm64" ... [I have already produced several CLR-Apps this way, cross-platform, successfully]
How can I produce the respective Qt-builds/-libraries?
It should be possible with Qt (MSVC is generally able to produce all target packages).
But how to build the respective Qt-Builds?
I have already spent more than a week without success. -
Hi, and welcome!
@Tom-Ernst said in How can I deploy from windows to linux ?:
My "Qt-building" console is Powershell, configured for using MSVC-dev-environment
What you want might be a bit tricky to set up in PowerShell, but the following blog posts should be a good place to start: