Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cross Compiling: Linux -> Windows and Linux -> Mac
QtWS25 Last Chance

Cross Compiling: Linux -> Windows and Linux -> Mac

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 3.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.
  • K Offline
    K Offline
    KILL3RTACO
    wrote on 1 Sept 2013, 03:08 last edited by
    #1

    First of all:

    • I know that Qt is not a cross compiler.

    I have done a tons amount of Google searching, but not a good solid answer. I have Qt Creator on my Linux laptop. I know that Qt is not a cross compiler, but that's where I need help. How can I use the IDE to compile for Windows, and, if possible, Mac as well (I saw something about cross compiling to Mac not being possible)?

    I have MinGW installed (I think), but that step be included anyway just in case I have not installed correctly or something.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chenlong12580
      wrote on 1 Sept 2013, 06:38 last edited by
      #2

      you want develop under linux enverionment for Windows application?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        KILL3RTACO
        wrote on 1 Sept 2013, 06:40 last edited by
        #3

        Well, for Linux/Windows/Mac. I already know that I can compile for the system I'm running on.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 1 Sept 2013, 20:31 last edited by
          #4

          Hi and welcome to devnet,

          Indeed, there's currently no option to cross-compile for OS X. And for windows you would have to cross-compile Qt first with mingw then use that version of Qt to build your project with QtCreator. Also keep in mind that you must not use any platform dependent code if you want to cross-compile for windows.

          Most people (me included) will recommend you to have virtual machines to do native build of your application. This will also give you the possibility to test that your application works correctly on the other platforms.

          Hope it helps

          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

          2/4

          1 Sept 2013, 06:38

          • Login

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