Unsolved Unable to build qt5 - error in qtlocation
-
The qt5 build on Ubunto 20 fails in qtlocation:
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp: In member function ‘void mbgl::BiDi::mergeParagraphLineBreaks(std::set<long unsigned int>&)’:
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:63:24: error: ‘runtime_error’ is not a member of ‘std’
63 | throw std::runtime_error(std::string("ProcessedBiDiText::mergeParagraphLineBreaks: ") +
| ^~~~~~~~~~~~~
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp: In member function ‘std::vector<std::__cxx11::basic_string<char16_t> > mbgl::BiDi::processText(const u16string&, std::set<long unsigned int>)’:
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:98:20: error: ‘runtime_error’ is not a member of ‘std’
98 | throw std::runtime_error(std::string("BiDi::processText: ") + u_errorName(errorCode));
| ^~~~~~~~~~~~~
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp: In member function ‘std::u16string mbgl::BiDi::getLine(std::size_t, std::size_t)’:
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:109:20: error: ‘runtime_error’ is not a member of ‘std’
109 | throw std::runtime_error(std::string("BiDi::getLine (setLine): ") + u_errorName(errorCode));
| ^~~~~~~~~~~~~
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:125:20: error: ‘runtime_error’ is not a member of ‘std’
125 | throw std::runtime_error(std::string("BiDi::getLine (writeReordered): ") +
| ^~~~~~~~~~~~~
make[4]: *** [Makefile:3763: .obj/platform/default/bidi.o] Error 1std::runtime_error has been in C++ since c++11.
Any assistance would be most helpful.
[Newbie here - sorry, should be in Installation and Deployment.]