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

QtLocation doesn't compile in C++20 mode due to outdated 3rdparty components

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.0 Alpha
    • None
    • OpenMandriva 4.1, clang++ 10.0
    • All

    Description

      QtLocations 5.15.0 alpha fails to build in C+20 mode (using clang10, but any other compliant compiler should react the same way) because of pre-C+20 code in the old versions of boost and earcut.

      Updating src/3rdparty/mapbox-gl-native/deps/boost to boost 1.72.0 [or, better yet, not bundling boost and using the system version instead] and src/3rdparty/mapbox-gl-native/deps/earcut to earcut to the version in earcut git https://github.com/mapbox/earcut.hpp/blob/master/include/mapbox/earcut.hpp
      solves both problems.

      Also, src/3rdparty/mapbox-gl-native/platform/default/bidi.cpp needs to #include <stdexcept> to get std::runtime_error and src/3rdparty/mapbox-gl-native/src/mbgl/util/convert.cpp needs to #include <cstdint> to get int32_t.

      Attachments

        Issue Links

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

          Activity

            People

              tmpsantos Thiago Marcos P. Santos
              bero Bernhard Rosenkränzer
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes