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. How to develop software for Windows on MacOS?
Forum Updated to NodeBB v4.3 + New Features

How to develop software for Windows on MacOS?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 311 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.
  • D Offline
    D Offline
    dmitry.maslov
    wrote on last edited by
    #1

    I have a macbook. I installed QT. How to develop, assemble, compile programs for Windows? Is there a way without virtual machines?

    J.HilkJ 1 Reply Last reply
    1
    • D dmitry.maslov

      I have a macbook. I installed QT. How to develop, assemble, compile programs for Windows? Is there a way without virtual machines?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      hi @dmitry-maslov and welcome

      there is. But the way is dark and full of terrors.

      It's called cross compiling. In principle you can setup clang to cross compile for windows. That is not easy after that you'll have to cross compile qt as well, no pre compiled libs for that path.

      In all honesty, I would suggest a VM or a really cheap windows laptop. you nearly get one for the license of Parallels.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      5
      • artwawA Offline
        artwawA Offline
        artwaw
        wrote on last edited by
        #3

        Hi,
        as @J-Hilk said. Me myself, I use Parallels Desktop as VM to run Win10. In coherence mode you have no desktop, just windows and Qt works in that environment very well. I'd strongly suggest going that way.
        Also, if you start to consider VM, please avoid VirtualBox, it is great on Linux and Windows but on Mac it is nothing but trouble.

        For more information please re-read.

        Kind Regards,
        Artur

        1 Reply Last reply
        4
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          A valid alternative, especially if you are developing open-source software is online CIs. The most famous one for windows is AppVeyor. The idea is to add a script file (.appveyor.yml) to your repository that tells this service how to build your program and how to pack the output of the build then every time you commit to the master barnch or add a tag to your git repo the service builds it for you.

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          6

          • Login

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