Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Cross-Compiling Qt Applications from Windows to Mac OS

    General and Desktop
    2
    2
    7094
    Loading More Posts
    • 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
      Saahil last edited by

      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 Reply Quote 0
      • T
        tobias.hunger last edited by

        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 Reply Quote 0
        • First post
          Last post