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. Cross-Compiling Qt Applications from Windows to Mac OS
Qt 6.11 is out! See what's new in the release blog

Cross-Compiling Qt Applications from Windows to Mac OS

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 7.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello everyone,
    Can anyone tell me how to build .app extension files through Qt Creator-SDK and MingW? GCC Compiler is also installed.

    I have done is

    qmake -spec macx-xcode project_name.pro

    It created supporting files to create .app extension (when opened in Notepad).

    Thanks for the help.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      You will need a special cross compiler for that, a normal mingw will not work: Apple uses a binary format that differs from the one used on windows.

      The macx-xcode spec expects the mac compiler set up as on a mac, too, so that is unlikely to work with a cross-compiler tool chain on windows.

      I saw a documentation on how to "cross-compile from Linux to Mac":http://devs.openttd.org/~truebrain/compile-farm/apple-darwin9.txt before, maybe that can be used as some form of inspiration for a similar setup on Windows... Note that the process seems to depend heavily on which version of MacOS you want to target.

      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