Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60533

Compile for Android errors out in mapbox-gl-native using clang, but no problem when using g++

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.0 Beta 4
    • 5.9.0 Beta 3
    • None
    • Linux host using android-ndk-14b, compiling for both Android arm + x86
    • 71deab00093a80e7f3b379f74b3bb4448a801e95

    Description

      Compiling with configuration -xplatform android-clang fails in mapbox-gl-native with a bunch of errors (see below), but using -xplatform android-g++ finds no trouble.

      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:38:12: error: no member named 'to_string' in namespace 'std'; did you mean 'toString'?
      return std::to_string(t);
      ^~~~~~~~~~~~~~
      toString
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:37:20: note: 'toString' declared here
      inline std::string toString(T t) {
      ^
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:42:12: error: no member named 'to_string' in namespace 'std'; did you mean 'toString'?
      return std::to_string(int(num));
      ^~~~~~~~~~~~~~
      toString
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:41:20: note: 'toString' declared here
      inline std::string toString(int8_t num) {
      ^
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:46:12: error: no member named 'to_string' in namespace 'std'; did you mean 'toString'?
      return std::to_string(unsigned(num));
      ^~~~~~~~~~~~~~
      toString
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:45:20: note: 'toString' declared here
      inline std::string toString(uint8_t num) {
      ^
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/fill_annotation_impl.cpp:1:
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/fill_annotation_impl.hpp:3:
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/shape_annotation_impl.hpp:4:
      qtlocation/src/3rdparty/mapbox-gl-native/src/3rd_party/geojson-vt-cpp/include/mapbox/geojsonvt.hpp:99:84: error: no member named 'to_string' in namespace 'std'
      throw std::runtime_error("Requested zoom higher than maxZoom: " + std::to_string(z));
      ~~~~~^
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/annotation_manager.cpp:5:
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/line_annotation_impl.hpp:3:
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/shape_annotation_impl.hpp:3:
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:38:12: error: no member named 'to_string' in namespace 'std'; did you mean 'toString'?
      return std::to_string(t);
      ^~~~~~~~~~~~~~
      toString
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:37:20: note: 'toString' declared here
      inline std::string toString(T t) {
      ^
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:42:12: error: no member named 'to_string' in namespace 'std'; did you mean 'toString'?
      return std::to_string(int(num));
      ^~~~~~~~~~~~~~
      toString
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:41:20: note: 'toString' declared here
      inline std::string toString(int8_t num) {
      ^
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:46:12: error: no member named 'to_string' in namespace 'std'; did you mean 'toString'?
      return std::to_string(unsigned(num));
      ^~~~~~~~~~~~~~
      toString
      qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp:45:20: note: 'toString' declared here
      inline std::string toString(uint8_t num) {
      ^
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/annotation_manager.cpp:5:
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/line_annotation_impl.hpp:3:
      In file included from qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/annotation/shape_annotation_impl.hpp:4:
      qtlocation/src/3rdparty/mapbox-gl-native/src/3rd_party/geojson-vt-cpp/include/mapbox/geojsonvt.hpp:99:84: error: no member named 'to_string' in namespace 'std'
      throw std::runtime_error("Requested zoom higher than maxZoom: " + std::to_string(z));
      ~~~~~^

      Attachments

        Activity

          People

            tmpsantos Thiago Marcos P. Santos
            jirauser24743 user-678dd (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: