Cannot build Q - error in qtlocation
-
wrote on 18 May 2020, 03:50 last edited by andro
A clean git checkout, branch 5.14. I consistently get this failure, even after purge and rebuild:
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:63:24: error: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("ProcessedBiDiText::mergeParagraphLineBreaks: ") +
~~~~~^
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:98:20: error: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("BiDi::processText: ") + u_errorName(errorCode));
~~~~~^
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:109:20: error: no member named 'runtime_error' in namespace 'std'
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: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("BiDi::getLine (writeReordered): ") +
~~~~~^
4 errors generated.
make[5]: *** [Makefile:3793: .obj/platform/default/bidi.o] Error 1std::runtime_error has been available since C++11. What could I be doing wrong?
Adding
#include <stdexcept> allows the file to compile. Why do I have to do this? Isn't git tag 5.14 an OK release, able to be built without error?
-
What is your
configure
call? Which compiler and version are you using? Why not use the prebuilt Qt from Qt installer? Do you need QtLocation (you can-skip
the module)? -
A clean git checkout, branch 5.14. I consistently get this failure, even after purge and rebuild:
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:63:24: error: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("ProcessedBiDiText::mergeParagraphLineBreaks: ") +
~~~~~^
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:98:20: error: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("BiDi::processText: ") + u_errorName(errorCode));
~~~~~^
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:109:20: error: no member named 'runtime_error' in namespace 'std'
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: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("BiDi::getLine (writeReordered): ") +
~~~~~^
4 errors generated.
make[5]: *** [Makefile:3793: .obj/platform/default/bidi.o] Error 1std::runtime_error has been available since C++11. What could I be doing wrong?
Adding
#include <stdexcept> allows the file to compile. Why do I have to do this? Isn't git tag 5.14 an OK release, able to be built without error?
wrote on 3 Aug 2023, 12:18 last edited by@andro Hello, I have same error on compiling the source code on debian 11 distro, and i fixed the error with editing the bidi.cpp and added #include <stdexcept> as you said and everything worked fine.
-
A clean git checkout, branch 5.14. I consistently get this failure, even after purge and rebuild:
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:63:24: error: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("ProcessedBiDiText::mergeParagraphLineBreaks: ") +
~~~~~^
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:98:20: error: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("BiDi::processText: ") + u_errorName(errorCode));
~~~~~^
/u01/src/qt5/qtlocation/src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp:109:20: error: no member named 'runtime_error' in namespace 'std'
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: no member named 'runtime_error' in namespace 'std'
throw std::runtime_error(std::string("BiDi::getLine (writeReordered): ") +
~~~~~^
4 errors generated.
make[5]: *** [Makefile:3793: .obj/platform/default/bidi.o] Error 1std::runtime_error has been available since C++11. What could I be doing wrong?
Adding
#include <stdexcept> allows the file to compile. Why do I have to do this? Isn't git tag 5.14 an OK release, able to be built without error?
wrote on 3 Aug 2023, 12:34 last edited by@andro As I get the same error, i think if you want to know:
i am using make version 4.3, mymake --version
output is: ```
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.my g++ version is:
g++ (Debian 10.2.1-6) 10.2.1 20210110And i didn't use the prebuilt qt because prebuilt version on opening a project for second time, doesn't recognize the other manual added headers or c files, thats why i am trying to install it in another way. thanks for your service!