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. How can I deploy from windows to linux ?
Forum Updated to NodeBB v4.3 + New Features

How can I deploy from windows to linux ?

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 5 Posters 985 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.
  • R Offline
    R Offline
    RdXDavidaz
    wrote on 17 Jan 2022, 13:55 last edited by
    #1

    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.

    J 1 Reply Last reply 17 Jan 2022, 14:04
    0
    • R RdXDavidaz
      17 Jan 2022, 13:55

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 17 Jan 2022, 14:04 last edited by jsulm
      #2

      @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.

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

      1 Reply Last reply
      3
      • R Offline
        R Offline
        RdXDavidaz
        wrote on 17 Jan 2022, 14:15 last edited by
        #3

        Thank you, I will try this.

        N 1 Reply Last reply 9 Mar 2022, 18:49
        0
        • R RdXDavidaz
          17 Jan 2022, 14:15

          Thank you, I will try this.

          N Offline
          N Offline
          nyquistjack
          wrote on 9 Mar 2022, 18:49 last edited by
          #4

          @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.

          J 1 Reply Last reply 10 Mar 2022, 06:23
          0
          • N nyquistjack
            9 Mar 2022, 18:49

            @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.

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 10 Mar 2022, 06:23 last edited by
            #5

            @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).

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

            1 Reply Last reply
            0
            • T Offline
              T Offline
              Tom Ernst
              wrote on 1 Apr 2022, 16:37 last edited by Tom Ernst 4 Jan 2022, 16:44
              #6

              @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.

              J 1 Reply Last reply 2 Apr 2022, 11:11
              0
              • T Tom Ernst
                1 Apr 2022, 16:37

                @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.

                J Offline
                J Offline
                JKSH
                Moderators
                wrote on 2 Apr 2022, 11:11 last edited by
                #7

                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:

                • https://www.qt.io/blog/creating-an-embedded-qt-quick-application-in-visual-studio-1/2
                • https://www.qt.io/blog/creating-an-embedded-qt-quick-application-in-visual-studio-2/2

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved