* git submodules are init'd automatically by the build script * styles are no longer bundled * Don't list libtool and automake: if mason fails to find a prebuilt binary, it's a bug and we want to fix it
2.0 KiB
Building & Developing Mapbox GL Native from Source
Just trying to use Mapbox GL Native? You don't need to read this stuff! We provide easy-to-install, prebuilt versions of the Mapbox SDKs for iOS and Android that you can download instantly and get started with fast.
Still with us? These are the instructions you'll need to build Mapbox GL Native from source on a variety of platforms and set up a development environment.
Your journey will start with getting the source code, then installing the dependencies, and then setting up a development environment, which varies depending on your operating system and what platform you want to develop for.
1: Getting the Source
Clone the git repository:
git clone https://github.com/mapbox/mapbox-gl-native.git
cd mapbox-gl-native
2: Installing Dependencies
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++-5 or later
- Python 2.x (for build only)
- Node.js (for build only)
pkg-config(for build only)
Depending on your operating system and target, you'll need additional dependencies:
Additional Dependencies for Linux
libcurl(depends on OpenSSL)
Additional Dependencies for OS X
- Apple Command Line Tools (available at Apple Developer)
- Homebrew
- Cask (if building for Android)
- xcpretty (
gem install xcpretty)
3: Setting up a development environment & building
See the relevant SDK documentation for next steps: