I am developing an application using QtCreator in Mac OS X and it must be cross-platform.
I have a Mac OS X as host. Also I have a MS Windows installed on virtual machine and a Ubuntu installed on another virtual machine:
How can I develop my application in Mac OS and build it in another platforms (Mac/Windows/Ubuntu) all at once?
Is there any remote compiler option in QtCreator?
I use remote compilation from Windows. I created custom build step using plink, which lest me execute remote command using key authorization, which starts the build. Qt creator can even parse errors returned :)
Short instruction how to configure it:
Create public key authentication for your user in putty and configure connection to your server: https://www.howtoforge.com/how-to-configure-ssh-keys-authentication-with-putty-and-linux-server-in-5-quick-steps
Download plink: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
In your QtCreator project configure "Custom Process Step" to connect to your server and start compilation. Assuming you have:
I don't think you can remote compile in Qt Creator but you can use a continuous build system like Jenkins to setup a distributed build environment. Build slaves in all your VMs would compile on commit in your SCM like git or Subversion.
Advantages of this approach:
Note: There are many more CI systems out there, see here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With