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 create an .exe file or a .dmg file from linux?
QtWS25 Last Chance

Can I create an .exe file or a .dmg file from linux?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 915 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.
  • F Offline
    F Offline
    Fotios Tragopoulos
    wrote on 20 Aug 2017, 19:39 last edited by
    #1

    Hello,
    I installed Qt on OpenSuse and I would like to learn using it. I would like to find out if it is possible to create an application that I can make it an .exe file that can run on Windows 10 and a .dmg file that can be executable on a Mac. If so, is there any tutorial for beginners that shows how to do that?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      karlheinzreichel
      wrote on 20 Aug 2017, 20:10 last edited by
      #2

      No you cannot create applications for different platforms under linux.
      You need to compile the apps under windows or macos.

      Karl-Heinz

      J 1 Reply Last reply 21 Aug 2017, 04:27
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 20 Aug 2017, 21:28 last edited by
        #3

        Hi and welcome to devnet,

        If you are not using anything Linux specific you can use the MinGW cross-compiler, not easy but doable.

        As of macOS, no.

        On a side note, if you are just staring to learn, I wouldn't recommend to go the cross-compilation road as a starter. A virtual machine for Windows would be best so you can test your application while developing it.

        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
        0
        • K karlheinzreichel
          20 Aug 2017, 20:10

          No you cannot create applications for different platforms under linux.
          You need to compile the apps under windows or macos.

          Karl-Heinz

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 21 Aug 2017, 04:27 last edited by
          #4

          @karlheinzreichel Your claim is wrong: you can build programs for many many other platforms on Linux except MacOS. This is called "cross compilation".

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          1/4

          20 Aug 2017, 19:39

          • Login

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