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
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.
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.
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?
Re: Compilation and distribution
Quote:
Originally Posted by
cpearson1990
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.
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.
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.