How do you re configure a Qt build from source?
-
Once you've typed up the configure command in the source folder and hit return, can you change anything you've configured and build again? For instance, I did a -nomake Tools but now realize I need the quick compiler. It's not obvious to me how to re-configure for a fresh build. From what I can tell a bunch of in-source Makefiles are created. Is there a way to perform a different configuration command without downloading a completely new Qt source tree?
Sorry if this is a dumb question. Building for QNX, and Qt binaries aren't provided.
-
The build process for Qt from source is usually done in a build directory separate from the sources themselves (shadow build) like this:
mkdir ~/qt-build cd ~/qt-build ~/qt-source/configure -prefix /opt/Qt5.15 qmake
In that case you can get a completely clean build, with as many variations as you like, each in their own directory. The source remains unchanged.
If you have done an in-source build then, as you say, you get configure files and Makefiles interspersed in your source. Have you tried just re-running configure with your new options? If that does not work then you may find that
make distclean
will remove all the configuration and intermediate files but I cannot say for sure.You should also be able to shadow build from the tainted source folders.