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. Can I compile Qt project to application for Mac OS on Windows Machine?
Qt 6.11 is out! See what's new in the release blog

Can I compile Qt project to application for Mac OS on Windows Machine?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 4.8k Views 3 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.
  • CindyqtC Offline
    CindyqtC Offline
    Cindyqt
    wrote on last edited by
    #1

    I write the code by Qt creator(5.7) on Windows. Now I want to compile the project and let the app can run on Mac OS.

    Is there a way to do it?

    I think compile on a Mac OS virtual Machine is the easiest way but my manager is looking for "write everything on Windows, change options when compile in Windows, generate App for Mac OS". I didn't find good article online. Can anyone guide me through this? Thanks

    Joel BodenmannJ 1 Reply Last reply
    0
    • CindyqtC Cindyqt

      I write the code by Qt creator(5.7) on Windows. Now I want to compile the project and let the app can run on Mac OS.

      Is there a way to do it?

      I think compile on a Mac OS virtual Machine is the easiest way but my manager is looking for "write everything on Windows, change options when compile in Windows, generate App for Mac OS". I didn't find good article online. Can anyone guide me through this? Thanks

      Joel BodenmannJ Offline
      Joel BodenmannJ Offline
      Joel Bodenmann
      wrote on last edited by Joel Bodenmann
      #2

      That's not possible. You can't compile your OS X application on a Windows machine.
      To everybody who is about to yell at me: Yes, there are a few attempts to get this going (and that's usually through a Linux environment) but experience tells that you'll end up spending (or rather wasting) three weeks trying to get something working reliably before you realize that it won't happen.

      Mac OS virtual Machine

      That is illegal, you are not allowed to that. That's against the OS X license which states that OS X must not be run on anything other than official Apple hardware.

      Our company faced the same "challenge" a few months ago and we ended up buying a 500$ Mac Mini. I assume that you can get them a lot cheaper on e-Bay or similar.

      Industrial process automation software: https://simulton.com
      Embedded Graphics & GUI library: https://ugfx.io

      1 Reply Last reply
      1
      • CindyqtC Offline
        CindyqtC Offline
        Cindyqt
        wrote on last edited by Cindyqt
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          One other point that should also be interesting: doing and running a native build can help uncover subtle bugs. It also helps make your code build on several different compilers that will complain differently. All in all it will allow you to better understand the platforms you are targeting.

          And except the investment in Mac hardware, you can do the rest (e.g. build a Linux version) in virtual machines.

          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

          • Login

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