How to shorten the Qt make process?

huahsin68 picture huahsin68 · Jun 2, 2011 · Viewed 8.1k times · Source

I have downloaded an open source Qt that target on Windows. Since I am using the VS2010 command prompt to do the installation, it automatically set the platform to msvc-2010. When I am trying to build using nmake, it took about 7-8 hours to complete the installation. During the process, I have notice that Qt is compiling the libraries which I don't need like javascript.

May I know how can I shorten the build process since I am focusing on desktop development?

Answer

rubenvb picture rubenvb · Jun 2, 2011

As @tibur said, you can use jom, which is a kind of "parallel nmake". You can also pass several options to Qt's configure, some of which are:

  1. -release or -debug: build only release or debug binaries
  2. -nomake demos, -nomake examples, -nomake tools: don't build well, demos, examples or tools.
  3. -no-webkit, -no-qt3support, -no-script, -no-scripttools: disable certain Qt modules.

There may be more, configure.exe --help will tell you all the options available to you.