一、下载源代码
首先下载mapbox源代码,源代码地址:https://github.com/mapbox/mapbox-gl-native
下载完成后解压到一个地方。
二、下载编译需要的工具(依赖环境)
These dependencies are required for all operating systems and all platform targets.
Modern C++ compiler that supports -std=c++14
clang++ 3.5 or later or
g++-4.9 or later
CMake 3.1 or later (for build only)
cURL (for build only)
Node.js 4.2.1 or later (for build only)
pkg-config (for build only)
Note: We partially support C++14 because GCC 4.9 does not fully implement the final draft of the C++14 standard. More information in DEVELOPING.md.
下载地址详见官方文档: