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
Forum Update on Monday, May 27th 2025

Cross-Compiling Qt Applications from Windows to Mac OS

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 7.3k Views
  • 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.
  • S Offline
    S Offline
    Saahil
    wrote on 1 Jul 2011, 07:45 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.

    Saahil Priya Kumar

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 1 Jul 2011, 08:42 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

      1/2

      1 Jul 2011, 07:45

      • Login

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