Results 1 to 7 of 7

Thread: Compilation and distribution

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Compilation and distribution

    Hi, I'm working on a project at the moment and have chosen QT to develop it for multiple platforms (windows, osx and possibly linux).

    I am able to build the project for windows using QT creator (on windows), I wish to know if it is possible to develop and build the project on a windows machine, and have it (at build time) produce it so it can run on osx or linux?

    Thank you
    Clint

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compilation and distribution

    for osx you are out of luck becoz i dont think there is a cross compiler for it. On linux in dont know.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Compilation and distribution

    The magic word is cross compile. Use either the forums search engine or a simple internet search engine and you will find thousands of site regarding to you question.

  4. #4
    Join Date
    Jul 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Wink Re: Compilation and distribution

    I see, so I am able to generate the project with QT still?

    And once I've done in QT, I would add a new build step and point it to the cross-platform compiler and pass it the suitable arguments?

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Compilation and distribution

    Quote Originally Posted by cpearson1990 View Post
    And once I've done in QT, I would add a new build step and point it to the cross-platform compiler and pass it the suitable arguments?
    Code normal and use *.pro file with win32{} scope or the others to bind specific os stuff, then simply install different cross compilers, use the -spec option of qmake and build for the different targets like you currently do.

  6. #6
    Join Date
    Jun 2009
    Location
    Bato, Leyte, Philippines
    Posts
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Compilation and distribution

    Download the QtCreator installer for Windows on your windows machine, install it, just copy your project. Recompile your project in windows box.

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Compilation and distribution

    As for Linux, it might be even simpler to install a virtual machine and compile there, rather than setting up a cross-compiler.
    J-P Nurmi

Tags for this Thread

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.