Qt when building Qt from source, how to clear old configuration configurations?

im compiles Qt from the source code, but I donโ€™t want to extract the source every time I want to build it. How to clear the previous configuration using the configuration tool?

+4
source share
4 answers

For Qt4 and earlier, try the following:

nmake confclean 

You can then reconfigure and recompile QT.

As noted in the comments, this no longer works in QT 5. This is because the Qt project now uses separate submodules for different parts. If you have a local clone of the Qt git repositories, you can try calling from the main Qt directory:

 git submodule foreach --recursive "git clean -dfx" 

As indicated here , problems may occur if you have a downloaded source archive. The link that I posted suggests using shadow assembly, so the process of creating a clean configuration is as simple as setting up to create shadow objects in the new destination.

+6
source

As of today (Qt 5.9.0 beta2) there is no confclean target on confclean , and you need to manually delete the .config.cache file to reconfigure.

Note that make distclean does not help at all.

+3
source

In Ubuntu:

 make confclean 

BTW, the following text is displayed after run configure:

 Qt is now configured for building. Just run 'make'. Once everything is built, you must run 'make install'. Qt will be installed into /home/ben/qt/qt-everywhere-opensource-4.7.4-debug To reconfigure, run 'make confclean' and 'configure'. 
0
source

For the latest versions, use the shadow assembly, then you can simply destroy your directory. My setup batch file efficiently creates a new folder, moves to it, and then calls configure. Then you just go into the shadow directory and run "jom". If you want to create a different configuration, just use a different shadow directory. This actually means that your source tree is not populated with build artifacts that cannot be deleted if you need a different configuration. Believe me, this is what you need to do ....

 mkdir shadow_dir cd shadow_dir %~dp0\src\configure.bat .... 
0
source

All Articles