Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot build Q - error in qtlocation
Forum Updated to NodeBB v4.3 + New Features

Cannot build Q - error in qtlocation

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 4 Posters 935 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andro
    wrote on 18 May 2020, 03:50 last edited by andro
    #1

    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?

    M 2 Replies Last reply 3 Aug 2023, 12:18
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 18 May 2020, 04:33 last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      3
      • A andro
        18 May 2020, 03:50

        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?

        M Offline
        M Offline
        miannoodle01
        wrote on 3 Aug 2023, 12:18 last edited by
        #3

        @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.

        1 Reply Last reply
        0
        • A andro
          18 May 2020, 03:50

          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?

          M Offline
          M Offline
          miannoodle01
          wrote on 3 Aug 2023, 12:34 last edited by
          #4

          @andro As I get the same error, i think if you want to know:
          i am using make version 4.3, my make --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 20210110

          And 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!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            semlanik
            wrote on 3 Aug 2023, 13:01 last edited by
            #5

            @andro could you please share the compiler line too? It sounds like either the compiler issue or exceptions flag is missing.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved