我正在尝试使用OSMesa在mapbox-gl-native
中构建渲染示例应用程序,但是当我运行该应用程序时,出现以下错误。
./mbgl-render --debug -s https://osm.tegola.io/maps/osm/style.json
[INFO] {mbgl-render}[General]: GPU Identifier: Mesa OffScreen
[ERROR] {mbgl-render}[Setup]: loading style failed: Problem with the SSL CA cert (path? access rights?): error setting certificate verify locations:
CAfile: ca-bundle.crt
CApath: /etc/ssl/certs
Error: Problem with the SSL CA cert (path? access rights?): error setting certificate verify locations:
CAfile: ca-bundle.crt
CApath: /etc/ssl/certs
mbgl-render: ../../../platform/default/thread_local.cpp:36: mbgl::util::ThreadLocal<T>::~ThreadLocal() [with T = mbgl::Scheduler]: Assertion `!get()' failed.
Aborted
我不知道该怎么做才能摆脱断言失败?
我正在使用make WITH_OSMESA=ON render
进行构建
我建立在ubuntu:18.04码头工人形象上。
不知道这是否有帮助:
git hash是153acd981b344d7a3963514cfb3241e8cb27ba2d。
运行mbgl-test应用程序无法通过以下测试:
[==========] 706 tests from 96 test cases ran. (155451 ms total)
[ PASSED ] 703 tests.
[ FAILED ] 3 tests, listed below:
[ FAILED ] Annotations.DebugSparse
[ FAILED ] CustomGeometrySource.Grid
[ FAILED ] Timer.Basic
3 FAILED TESTS
YOU HAVE 2 DISABLED TESTS