How to remotely compile in QtCreator

I am developing an application using QtCreator on Mac OS X, and it must be cross-platform.

I have Mac OS X as a host. I also have MS Windows installed on a virtual machine, and Ubuntu is installed on another virtual machine:

  • Mac OS X: Qt 5.4.0 - 64bit - clang - Xcode 6.0
  • MS Windows: Qt 5.3.0 - 32bit - VC ++ 2013
  • Ubuntu: Qt 5.3.0 - 64bit - GCC

How can I develop my application on Mac OS and create it on other platforms (Mac / Windows / Ubuntu) at the same time?

Is there a remote compiler option in QtCreator?

+6
source share
2 answers

I do not think that you can remove in the compilation of Qt Creator, but you can use a continuous build system, such as Jenkins , to establish a distributed build environment . The subordinate assembly in all of your virtual machines will compile when committed in your SCM, such as git or Subversion.

The advantages of this approach:

  • works on all major platforms such as Linux, MacOS, Windows
  • .. and for all major compilers
  • You can use any number of platforms regardless of Qt Creator support.
  • you can easily get help because it is done in many professional systems.
  • You can distribute your development.
  • you can use any IDE
  • you have great flexibility and tons of plugins that make life easier.

Note. There are many more CI systems, see here .

+6
source

I am using remote compilation from windows. I created a custom build step using plink so that I would not execute a remote command using key authorization that starts the build. Qt creator may even parse errors :)

Brief instructions for setting it up:

enter image description here

+1
source

Source: https://habr.com/ru/post/981224/


All Articles