Like Qt Creator do.
e.g. I pull the source into dir D:\Qt\qt_source, I want to build it into D:\Qt\build0421.
I found this when I type configure -help
-prefix <dir> ...... This will install everything relative to <dir>
(default $QT_INSTALL_PREFIX)
But it seems no use.
I cd into D:/Qt/build0421, and configure:
..\qt_source\configure -prefix ..\build0421 -debug-and-release <some_other_options>
Then I opened d:\build0421\qtbase\include\QtCore\qabstractanimation.h, it contains:
#include "../../../../qt_source/qtbase/src/corelib/animation/qabstractanimation.h"
It is obviously wrong to have ‘qt_source’ in the include path.
I had many tries. The include path always contains ‘qt_source’ as long as I configure Qt outside the source directory.
How can I build Qt into a separate directory?
Thank you !
↧