Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Cannot build Q - error in qtlocation



  • 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 1

    std::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?


  • Moderators

    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)?


Log in to reply