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.35k stars 1.33k forks source link

Development/Compile instructions don't work #16514

Open iandees opened 3 years ago

iandees commented 3 years ago

I'm attempting to build mapbox-gl-native to play around with static map rendering. I'm using the Docker image over here to get the dependencies into a ubuntu:latest image. I then try to follow the mapbox-gl-native README instructions for compiling and it fails.

Steps to trigger behavior

  1. Grab the docker image at https://github.com/iandees/atto/blob/master/docker/Dockerfile
  2. Run docker build -f Dockerfile .
  3. Build fails with:

    CMake Error: The source directory "/opt/src/github.com/mapbox/mapbox-gl-native/build" does not exist.
    Specify --help for usage, or press the help button on the CMake GUI.

Expected behavior

Compilation to succeed.

Actual behavior

CMake Error: The source directory "/opt/src/github.com/mapbox/mapbox-gl-native/build" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
hjbdev commented 3 years ago

Also experiencing this when trying to build from cloned git. Ubuntu 18.04.3 LTS

tmpsantos commented 3 years ago

@iandees Can you try with this docker? https://github.com/mapbox/mapbox-gl-native/blob/master/scripts/ci/Dockerfile