Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
5.15.2
-
None
-
Windows10, Visual Studio 2019
Description
Hi,
I'm trying to convert our build system to build Qt outside the source tree, instead of inside (which is a bit of pain when recompilation is needed).
This is how I'm testing it:
rmdir /s /q %LIB_PATH_BUILD% mkdir %LIB_PATH_BUILD% cd /d %LIB_PATH_BUILD% call %LIB_PATH%\configure ...
qmake compilation as same as configuration works ok, but then during QtBase compilation some moc files are missing:
Q:\ExternalLibraries\librariesWindows\qt32\qtbase\src\corelib\animation\qabstractanimation.cpp(1480): fatal error C1083: Cannot open include file: 'moc_qabstractanimation.cpp': No such file or directory jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\qtbase\src\corelib\Makefile.Debug [.obj\debug\qabstractanimation.obj] Error 2 cl -c -FIglobal\qt_pch.h -Yuglobal\qt_pch.h -Fp.pch\debug\Qt5Cored_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:__cplusplus -Zi -MDd -std:c++17 -utf-8 -EHsc -MP -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\Qt5Cored.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_STATIC -DJAVASCRIPTCORE_JIT=NO -DENABLE_JIT=0 -D_WINDLL -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\corelib -I. -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\zlib\src -Iglobal -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\md5 -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\md4 -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\sha3 -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\double-conversion\include -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\harfbuzz\src -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\tinycbor\src -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\corelib\.rcc\debug -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\include -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\include\QtCore -I..\..\include -I..\..\include\QtCore -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\include\QtCore\5.15.1 -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\include\QtCore\5.15.1\QtCore -I..\..\include\QtCore\5.15.1 -I..\..\include\QtCore\5.15.1\QtCore -Itmp -I.moc\debug -I.tracegen\debug -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\src\3rdparty\pcre2\src -IQ:\ExternalLibraries\librariesWindows\qt32\qtbase\mkspecs\win32-msvc -Fo.obj\debug\ @C:\Users\LUDEK~1.VOD\AppData\Local\Temp\qanimationgroup.obj.31888.1797.jom qanimationgroup.cpp Q:\ExternalLibraries\librariesWindows\qt32\qtbase\src\corelib\animation\qpropertyanimation.cpp(314): fatal error C1083: Cannot open include file: 'moc_qpropertyanimation.cpp': No such file or directory jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\qtbase\src\corelib\Makefile.Debug [.obj\debug\qpropertyanimation.obj] Error 2 Q:\ExternalLibraries\librariesWindows\qt32\qtbase\src\corelib\animation\qvariantanimation.cpp(691): fatal error C1083: Cannot open include file: 'moc_qvariantanimation.cpp': No such file or directory jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\qtbase\src\corelib\Makefile.Debug [.obj\debug\qvariantanimation.obj] Error 2 Q:\ExternalLibraries\librariesWindows\qt32\qtbase\src\corelib\animation\qanimationgroup.cpp(326): fatal error C1083: Cannot open include file: 'moc_qanimationgroup.cpp': No such file or directory jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\qtbase\src\corelib\Makefile.Debug [.obj\debug\qanimationgroup.obj] Error 2 jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\qtbase\src\corelib\Makefile [debug-all] Error 2 jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\qtbase\src\Makefile [sub-corelib-make_first] Error 2 jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\qtbase\Makefile [sub-src-make_first] Error 2 jom: Q:\ExternalLibraries\librariesWindows\qt-everywhere-src-5.15.1-build\Makefile [module-qtbase-make_first] Error 2
Should build outside of the source tree work?