mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.36k stars 1.33k forks source link

Mapbox GL Native v1.5.2 #16436

Closed 1ec5 closed 4 years ago

1ec5 commented 4 years ago

Cherry-picked #16412, #16421 and updated the changelog for v1.5.2.

/cc @chloekraw @captainbarbosa

1ec5 commented 4 years ago

Not sure what’s up with the Android and Linux build bots, but this change has nothing to do with those platforms.

1ec5 commented 4 years ago

ios-unit-test-runner fails with:

<failure message="/Users/distiller/project/test/storage/online_file_source.test.cpp:388 Expected: (util::now()) < (res.error->retryAfter), actual: 8-byte object <71-A6 A3-5E 00-00 00-00> vs 16-byte object <01-79 4C-6F 61-64 73-00 71-A6 A3-5E 00-00 00-00>" type="">
/Users/distiller/project/test/storage/online_file_source.test.cpp:388 Expected: (util::now()) < (res.error->retryAfter), actual: 8-byte object <71-A6 A3-5E 00-00 00-00> vs 16-byte object <01-79 4C-6F 61-64 73-00 71-A6 A3-5E 00-00 00-00>
</failure>

Linux builds are failing with:

[538/577] Building C object CMakeFiles/mbgl-vendor-sqlite.dir/vendor/sqlite/src/sqlite3.c.o

ninja: build stopped: subcommand failed.

Exited with code exit status 1

CircleCI received exit code 1

The android-api-breakage build has been failing since v1.5.1:

android-api-breakage ``` Configuration failed. > Task :MapboxGLAndroidSDK:parseReleaseLibraryResources > Task :MapboxGLAndroidSDK:processReleaseManifest FAILURE: Build completed with 2 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':MapboxGLAndroidSDKTestApp:generateJsonModelRelease'. > com.android.ide.common.process.ProcessException: Error configuring CMake server (/opt/android/cmake/3.10.2.4988404/bin). Check for working C compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang Check for working C compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C compile features - done Check for working CXX compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ Check for working CXX compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done -- Configuring GL-Native with OpenGL renderer backend Looking for strerror_r Looking for strerror_r - found Target platform does not support HTTP tests or dependencies not found. CMake Error at CMakeLists.txt:5 (add_library): add_library cannot create target "******-gl" because another target with the same name already exists. The existing target is a shared library created in source directory "/src/vendor/******-gl-native". See documentation for policy CMP0002 for more details. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "mbgl-compiler-options" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "Mapbox::Base::jni.hpp" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "mbgl-core" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "mbgl-vendor-unique_resource" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:208 (install): install TARGETS given target "******-gl" which does not exist in this directory. Configuring incomplete, errors occurred! See also "/src/MapboxGLAndroidSDKTestApp/.cxx/cmake/release/arm64-v8a/CMakeFiles/CMakeOutput.log". * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':MapboxGLAndroidSDK:generateJsonModelRelease'. > com.android.ide.common.process.ProcessException: Error configuring CMake server (/opt/android/cmake/3.10.2.4988404/bin). Check for working C compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang Check for working C compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C compile features - done Check for working CXX compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ Check for working CXX compiler: /opt/android/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done -- Configuring GL-Native with OpenGL renderer backend Looking for strerror_r Looking for strerror_r - found Target platform does not support HTTP tests or dependencies not found. CMake Error at CMakeLists.txt:5 (add_library): add_library cannot create target "******-gl" because another target with the same name already exists. The existing target is a shared library created in source directory "/src/vendor/******-gl-native". See documentation for policy CMP0002 for more details. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "mbgl-compiler-options" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "Mapbox::Base::jni.hpp" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "mbgl-core" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:198 (target_link_libraries): Attempt to add link library "mbgl-vendor-unique_resource" to target "******-gl" which is not built in this directory. CMake Error at CMakeLists.txt:208 (install): install TARGETS given target "******-gl" which does not exist in this directory. Configuring incomplete, errors occurred! See also "/src/MapboxGLAndroidSDK/.cxx/cmake/release/arm64-v8a/CMakeFiles/CMakeOutput.log". * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ============================================================================== * Get more help at https://help.gradle.org BUILD FAILED in 11s 14 actionable tasks: 14 executed make: *** [Makefile:197: android-arm-v8] Error 1 Exited with code exit status 2 CircleCI received exit code 2 ```

None of these builds are related to the changes in this PR.

/cc @mapbox/gl-native