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. Target Mac OS on Windows development environment
Forum Updated to NodeBB v4.3 + New Features

Target Mac OS on Windows development environment

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.4k 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
    rstuppi
    wrote on last edited by
    #1

    I would like to create a desktop application that will run on Windows, Mac and Linux platforms. The application will NOT run on any mobile nor any embedded platforms. Is it possible to develop such an application using only a Windows development environment?

    I ask because I do not see any build/kit options for neither Mac nor Linux using QT on a Windows development environment.

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

      Hi and welcome to devnet,

      Cross-compilation from any environment to macOS is at this time at least not possible but it's nothing Qt specific.

      From Linux to Windows and vice-versa is possible using a dedicated MinGW cross-compiler but is not easily accomplished and you would have to cross-compile Qt also.

      The most common way to work on Windows with regard to building for Linux is to have a Linux virtual machine. As for macOS, an Apple machine is mandatory but you might be able to find services that provides you build infrastructure but you still have the issue of testing your application visually.

      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
      2
      • R Offline
        R Offline
        rstuppi
        wrote on last edited by
        #3

        @SGaist Thank you for replying. So what I take from this is that each targeted platform is easiest (best?) developed on each target's native platform. If that is the case, it seems that QT's claims of cross-platform development capabilities are to be taken with a grain of salt
        .

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

          No at all, cross-platform means that you have one code base that you can build for all target platforms. The fact that you can't cross-compile to macOS is not a Qt limitation but a constraints that comes from Apple.

          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
          2
          • R Offline
            R Offline
            rstuppi
            wrote on last edited by
            #5

            I think I understand my mistake. I realize that QT is a solution that satisfies cross-platform development, not necessarily cross-platform builds. The light is now on!

            1 Reply Last reply
            0
            • R rstuppi

              @SGaist Thank you for replying. So what I take from this is that each targeted platform is easiest (best?) developed on each target's native platform. If that is the case, it seems that QT's claims of cross-platform development capabilities are to be taken with a grain of salt
              .

              W Offline
              W Offline
              wrosecrans
              wrote on last edited by
              #6

              Nothing is ever going to allow you to ship Applications for MacOS without a Mac. Even if you farm out the build to a CI service, you still need a Mac to actually run and test the App, reproduce bugs, etc. That's nothing unique to Qt. It's just inherent in the nature of cross platform development that you do actually need some sort of access to the platform you are targeting.

              That said, if you are comfortable shipping binaries to end users that have never actually been tested by a person, check out https://circleci.com/build-environments/xcode/osx/ -- I have used their service for Linux CI builds in the past, and it's pretty convenient.

              1 Reply Last reply
              2

              • Login

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