Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is jom in qt build system ? how to call jom from command line to build qt project?

Tags:

c++

build

qt

Trying to build and run a simple "Hello world.." Qt application from command line, started the following steps and struck in compiling and building.. 1. created main.cpp file 2. run qmake -pro to create project file 3. run qmake to create make files ( here either have to run nmake or jom.. I tried jom ) 4. run jom.exe makefile , but nothing happens..

so here are my questions .. what is jom ( and expansion ?) , how to invoke jom from command line..

I am using Qt 5.1.1 with Microsoft Visual C++ compiler 11.0.

like image 259
Prady Avatar asked May 07 '14 06:05

Prady


1 Answers

nmake doesn’t make use of all available processing power like GNU make. jom is a clone of nmake to support the execution of multiple independent commands in parallel. It can use an arbitrary number of processes concurrently.

When using it for example On a quad core machine with a Qt build takes half of the time it took using nmake.

You also can use the -j command line argument to set the number of concurrent processes:

C:\Qt\Qt5.1.1\Tools\QtCreator\bin\jom.exe -j 12 -f Makefile 

12 represents the number of cores you want to use. I use 12 because I have 12 threads.

like image 106
Nejat Avatar answered Oct 21 '22 19:10

Nejat