Build Qt Source (mac): 'make' immediately hits an error ?
-
got all the way through instructions to the point where i execute
make
. but immediately got this error:luna:clang_64 davec$ make Scanning dependencies of target Bootstrap [ 0%] Building CXX object qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/global/qendian.cpp.o In file included from /Volumes/Developer/depot/Qt5_Source/Src/qtbase/src/corelib/global/qendian.cpp:41: In file included from /Volumes/Developer/depot/Qt5_Source/Src/qtbase/src/corelib/global/qendian.h:44: In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/qfloat16.h:1: In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/../../../../Src/qtbase/src/corelib/global/qfloat16.h:44: In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/qglobal.h:1: In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/../../../../Src/qtbase/src/corelib/global/qglobal.h:1417: In file included from /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/qtypeinfo.h:1: /Volumes/Developer/depot/Qt5_Source/clang_64/qtbase/include/QtCore/../../../../Src/qtbase/src/corelib/global/qtypeinfo.h:43:10: fatal error: 'variant' file not found #include <variant> ^~~~~~~~~ 1 error generated. make[2]: *** [qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/__/__/corelib/global/qendian.cpp.o] Error 1 make[1]: *** [qtbase/src/tools/bootstrap/CMakeFiles/Bootstrap.dir/all] Error 2 make: *** [all] Error 2 luna:clang_64 davec$
-
@davecotter said in Build Qt Source (mac): 'make' immediately hits an error ?:
Apple LLVM version 9.1.0 (clang-902.0.39.2)
This version doesn't seem to support
std::variant
. See https://stackoverflow.com/questions/15417619/how-do-you-update-xcode-on-osx-to-the-latest-version to update XCode -
anyone have a hint?
-
Apple LLVM version 9.1.0 (clang-902.0.39.2) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
i realize that's outside the "supported versions", however i doubt that is the issue?
i have searched the entire "Src" directory, there is no "version" file, there is only several "version.h" and "version.hpp"
another possibly relevant factor is that i moved the "Src" directory AFTER i issued the
init-repository
call, could that screw things up?-dave
-
Hi,
Let's take a step back.
Which version of Qt are you trying to build ?
Which version of Xcode did you install ?
Which configure parameters did you use ? -
@davecotter said in Build Qt Source (mac): 'make' immediately hits an error ?:
Apple LLVM version 9.1.0 (clang-902.0.39.2)
This version doesn't seem to support
std::variant
. See https://stackoverflow.com/questions/15417619/how-do-you-update-xcode-on-osx-to-the-latest-version to update XCode -
yes, i upgraded to xcode 10 and it started working