Compile a Qt project running time
-
Hello guys!
I'm developing an application powered by Qt which has "Exporting" feature.
For example, the user make his project in my application and the application save all settings and stuffs as a Qt project (has .pro file, headers, .cpp and etc.).
After that application needs to compile the project. So, how to do that?! :D -
@AliReza-Beytari Hi! Run qmake and make.
-
@Wieland What if user's system doesn't have qmake or make or even C++ compiler?!
-
@AliReza-Beytari Without a compiler you can't compile anything. And without a build system calling the compiler on any non-trivial project will become really complex.
-
@Wieland
Well, if you're feeling adventurous you could in principle try implementing your own compiler ... in the end, it only takes a few decades to make it good. :) -
@Wieland Is there any way to link the C++ Compiler and qmake to my application?!
-
@AliReza-Beytari No, but you can bundle your application with other stuff (e.g. gcc, qmake et. al.) in one installer.