Correct/Fast Way to Change the Config of a Command-Line Qt5 Source Build

Viewed 167

I'm building Qt5 (Qt 5.15.0) from source (the official source releases, not from repo) on Windows with MSVC.

I'm setting up the env. variables, the dependencies, etc. and then run configure with 16 million options, and finally jom and it works.

But I'm experimenting with the build, and have to run configure a lot. And it seems like each time I either have to delete the whole source tree and re-unpack, or the build would fail.

Specifically, is there a way to "unconfigure" or "reconfigure" a Qt5 build? The "-redo" flag doesn't seem to be it, and nmake clean or jom clean don't work either (and they don't seem to be what I want; I want reconfigure, not rebuild.)

Again, note that my build does work. I just want faster/more practical iteration over changing the build configuration.

1 Answers

Use shadow build i.e. execute configure from one directory up level. Here is my command line which I used on Linux to build Static QT.

$ ../qtsrc/configure -opensource -confirm-license -release -static -no-pch -qt-xcb -prefix $PWD/_build -skip webengine -nomake tests -nomake examples

So in case you need to do another configure just empty the directory $PWD. Hope it helps to close this question.

Related