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. Building Windows apps on Ubuntu with QT Creator
Forum Updated to NodeBB v4.3 + New Features

Building Windows apps on Ubuntu with QT Creator

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 17.0k Views 1 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.
  • M Offline
    M Offline
    mkcerusky
    wrote on last edited by
    #1

    I am coding an application that I would like to be cross platform, or at least I would like to be able to easliy build a version for both Linux and Windows (in future also for android).

    I am using QT Creator 2.5.2 on a linux (Ubuntu) machine and of course I can easily build a version of my application that works on my machine. But how can I build versions that work on other machines such as windows macines? Is there a way to ask QT Creator to build a version of my app for windows? Or will I have to do it outside of QT Creator?

    I tried to find some hints in other topics of the forums but could not find any, thanks in advance for your help.

    Mkc.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jesdisciple
      wrote on last edited by
      #2

      Generally, the -xplatform argument to ./configure takes care of this. According to < http://www.linuxjournal.com/content/cross-compiling-qt >, its allowed values are mkspecs:

      Qt4: http://qt.gitorious.org/qt/qt/trees/4.8/mkspecs
      Qt5: http://qt.gitorious.org/qt/qtbase/trees/stable/mkspecs

      (Note that some more mkspec directories are under ./unsupported and possibly other directories.)

      If 32-bit is fine with you (it works on 64-bit, generally), here's another, purportedly simpler solution:

      Qt4: http://stackoverflow.com/questions/10934683/how-do-i-configure-qt-for-cross-compilation-from-linux-to-windows-target
      Qt5: http://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows/14170591

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mkcerusky
        wrote on last edited by
        #3

        Thanks I'll try out your suggestions :)

        1 Reply Last reply
        0

        • Login

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