Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Multi-platform deployment?

Multi-platform deployment?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 869 Views 2 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.
  • D Offline
    D Offline
    drarem
    wrote on last edited by
    #1

    Is it possible to deploy to Android, Windows, Linux, and Mac without having to go into another OS to compile?

    Thanks.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wrosecrans
      wrote on last edited by
      #2

      Certainly - at very least it's unusual to have to build for Android on an Android machine. You just use a cross compiler on you Win/Linux/Mac desktop or build server. The same idea applies generally. You can build a gcc that targets any platform, that runs on any platform. So, you can install a gcc on your Linux box that builds Windows binaries, for example.

      That said, you can't confidently run tests to see how it works on the other platform without using that platform. You can run Windows binaries under WINE on Linux, which is great. But you can't really be certain that your deployment is really correct for Windows 7/8/10 and there isn't anything different from "real" Windows vs. the fake environment.

      The normal way to handle multiplatform builds is to set up build servers for the various platforms that watch your repository and do a build whenever you check in a change. Then you can see if you broke the build on some platform. Jenkinds is pretty well known for that sort of thing, but there are a lot of tools and services.

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

        Hi and welcome to devnet,

        You can build projects for Android on any of the three desktop OS.

        For iOS and OS X, an OS X machine is mandatory.

        For Windows, you can cross-compile from Linux to Windows as long as you don't need any native API or library that's not available for MinGW.

        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