Results 1 to 2 of 2

Thread: Configure QtCreator to crosscompile from Linux to Windows using mingw32

  1. #1
    Join Date
    Nov 2015
    Posts
    41
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Configure QtCreator to crosscompile from Linux to Windows using mingw32

    Hi, I am working on debian 8 64 bit and I try to configure Qt Creator to crosscompile pure c++ application from linux to windows.

    So far I downloaded mingw32 and successfully compiled simple "Hello World" c++ application by means of command

    Qt Code:
    1. /usr/bin/x86_64-w64-mingw32-g++ main.cpp -o windows_64.exe
    To copy to clipboard, switch view to plain text mode 

    File windows_64.exe works properly on Windows.
    And now question how I can configure QtCreator to crosscompile from linux to windows?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Configure QtCreator to crosscompile from Linux to Windows using mingw32

    QtCreator configured projects with "Kits", where each kit is a combination of a Qt version and a compiler.

    Create a Qt build that is built with that compiler and then add this Qt version to creator, the compiler and create a kit for that combination.

    Cheers,
    _

Similar Threads

  1. Install QCA on Linux for Windows (mingw32 cross compiler)
    By huilui in forum Installation and Deployment
    Replies: 0
    Last Post: 24th September 2013, 00:13
  2. Replies: 2
    Last Post: 2nd May 2013, 23:23
  3. How to configure QtCreator on Windows with mingw
    By pospiech in forum Installation and Deployment
    Replies: 1
    Last Post: 17th December 2012, 13:31
  4. Configure keeps using g++ and not mingw32-g++-dw2
    By Daevius in forum Installation and Deployment
    Replies: 3
    Last Post: 7th October 2011, 19:37
  5. Crosscompile Qt in Linux
    By Morea in forum General Discussion
    Replies: 4
    Last Post: 13th April 2006, 18:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.