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

qtlocation doesn't build on NDK r18

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.11.2
    • Fix Version/s: 5.12
    • Labels:
      None
    • Platform/s:
      Android
    • Commits:
      56f949ad3ca8a13d9c49913bae1c9396946672e2

      Description

      With the fixed proposed in QTBUG-70631 my build gets past the configuration phase and into building the various modules.

      The build then errors out in module qtlocation on mapbox-gl-native with lots of errors like these:

      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/platform/qt/src/http_file_source.cpp:1:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/platform/qt/src/http_file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/storage/http_file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/storage/file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/storage/response.hpp:4:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/optional.hpp:3:
      /home/development/4suse42.3-android/android-ndk-r18/sources/cxx-stl/llvm-libc++/include/experimental/optional:11:2: error: "<experimental/optional> has been removed. Use <optional> instead."
      #error "<experimental/optional> has been removed. Use <optional> instead."
       ^
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/platform/qt/src/http_file_source.cpp:1:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/platform/qt/src/http_file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/storage/http_file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/storage/file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/storage/response.hpp:4:
      /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/optional.hpp:8:23: error: no member named 'experimental' in namespace 'std'
      using optional = std::experimental::optional<T>;
                       ~~~~~^
      /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/optional.hpp:10:24: error: no member named 'experimental' in namespace 'std'
      using nullopt_t = std::experimental::nullopt_t;
                        ~~~~~^
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/platform/qt/src/http_request.cpp:1:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/platform/qt/src/http_request.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/storage/http_file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/storage/file_source.hpp:3:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/storage/response.hpp:4:
      In file included from /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/optional.hpp:3:
      /home/development/qt-everywhere-src-5.11.2/qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/optional.hpp/home/development/4suse42.3-android/android-ndk-r18/sources/cxx-stl/llvm-libc++/include/experimental/optional:11:11:11:2: : error: error: unknown"<experiment
      al/optional> has been removed. Use <optional> instead." type
       name 'nullopt_t'; did you mean 'nullptr_t'?
      #error "<experimental/optional> has been removed. Use <optional> instead."
       ^
      constexpr nullopt_t nullopt = std::experimental::nullopt;
                ^~~~~~~~~
                nullptr_t
      /home/development/4suse42.3-android/android-ndk-r18/sources/cxx-stl/llvm-libc++/include/stddef.h:52:12: note: 'nullptr_t' declared here
      using std::nullptr_t;
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            tmpsantos Thiago Marcos P. Santos
            Reporter:
            mr.gadgets Frank van Vugt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes