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. How to compile for windows in linux
Forum Updated to NodeBB v4.3 + New Features

How to compile for windows in linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 857 Views 2 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.
  • J Offline
    J Offline
    Jeronimo
    wrote on 3 Nov 2016, 07:54 last edited by
    #1

    Hi i have some application's did in qt in linux and i want to compile for windows it's possible howw¿¿¿¿???

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 3 Nov 2016, 08:09 last edited by
      #2

      The easy way to do that is to use Windows. :)
      Crossing compiling in linux to windows is a bitch.
      http://www.blogcompiler.com/2010/07/11/compile-for-windows-on-linux/

      You will need to understand your new tools and how to set it up.
      You might need to compile Qt with it.

      Timewise it will be much faster to install windows and Qt and be done with it.

      1 Reply Last reply
      3
      • V Offline
        V Offline
        VRonin
        wrote on 3 Nov 2016, 08:09 last edited by VRonin 11 Mar 2016, 08:11
        #3

        http://stackoverflow.com/questions/10934683/how-do-i-configure-qt-for-cross-compilation-from-linux-to-windows-target

        An alternative, especially if it's open source and not a one-off is to use a ci tool for windows like https://www.appveyor.com/

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        3
        • R Offline
          R Offline
          Rahul Das
          wrote on 3 Nov 2016, 08:14 last edited by
          #4

          You may get Mingw for your linux.

          Ref : http://www.mingw.org/wiki/linuxcrossmingw

          Ref : http://stackoverflow.com/questions/2033997/how-to-compile-for-windows-on-linux-with-gcc-g


          Declaration of (Platform) independence.

          1 Reply Last reply
          3

          1/4

          3 Nov 2016, 07:54

          • 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