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 to build Build-versions on Windows for other targets than Windows?

How to build Build-versions on Windows for other targets than Windows?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 173 Views
  • 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.
  • T Offline
    T Offline
    Tom Ernst
    wrote on last edited by Tom Ernst
    #1

    I am an old top-level German software architect since half a century. I always worked on Windows systems, never on Linux, Mac and/or Smartphone-Systems.
    I am developing on Windows 10 with MSVC 2022 (with the "Qt Tools Extension") and want to produce Qt-Vulkan-Applications [esp. Viewer for "OpenSim next generation"] 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", etc...
    [ I have already produced several CLR-Apps incl. MAUI-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/-libraries/compilation-environments?
    I have already spent more than a week without success.
    Anyone here able to help?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can't cross-compile from Visual Studio to other OSs.

      For Androïd, you already have the Qt build and need to install the compilation environment.

      As for Linux you would need a cross-compiler as well as a cross-compiled Qt build.

      For macOS, there's nothing non native that you can use.

      For Linux, you could take advantage of WSL2 to your build though.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

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