Mapbox GL Native 不构建 ubuntu18
Mapbox GL Native doesn't build ubuntu18
我正在尝试使用 cmake 构建 Mapbox GL Native .. 所以我从 GitHub:
克隆了存储库
$ git clone https://github.com/mapbox/mapbox-gl-native.git
$ cd mapbox-gl-native
$ mkdir build && cd build
$ cmake ./
然后 returns 这个有错误:
CMake Error at node_modules/@mapbox/cmake-node-module/module.cmake:126 (add_library):
Target "mbgl-node.abi-64" links to target "OpenGL::OpenGL" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
platform/node/CMakeLists.txt:9 (add_node_module)
CMake Error at node_modules/@mapbox/cmake-node-module/module.cmake:126 (add_library):
Target "mbgl-node.abi-64" links to target "OpenGL::OpenGL" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
platform/node/CMakeLists.txt:9 (add_node_module)
CMake Error at node_modules/@mapbox/cmake-node-module/module.cmake:126 (add_library):
Target "mbgl-node.abi-57" links to target "OpenGL::OpenGL" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
platform/node/CMakeLists.txt:9 (add_node_module)
我需要 heeeelp,我一直在这里试图解决这个问题,但我不知道可能是什么问题..
谢谢大家!
如果你的OpenGL库路径安装定义在你的ENV路径中,
你想设置你的 CMAKE_PREFIX_PATH
到你的 OpenGL 安装路径(你可以将它设置在你的顶层 CMakeList.txt)。
我正在尝试使用 cmake 构建 Mapbox GL Native .. 所以我从 GitHub:
克隆了存储库$ git clone https://github.com/mapbox/mapbox-gl-native.git
$ cd mapbox-gl-native
$ mkdir build && cd build
$ cmake ./
然后 returns 这个有错误:
CMake Error at node_modules/@mapbox/cmake-node-module/module.cmake:126 (add_library):
Target "mbgl-node.abi-64" links to target "OpenGL::OpenGL" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
platform/node/CMakeLists.txt:9 (add_node_module)
CMake Error at node_modules/@mapbox/cmake-node-module/module.cmake:126 (add_library):
Target "mbgl-node.abi-64" links to target "OpenGL::OpenGL" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
platform/node/CMakeLists.txt:9 (add_node_module)
CMake Error at node_modules/@mapbox/cmake-node-module/module.cmake:126 (add_library):
Target "mbgl-node.abi-57" links to target "OpenGL::OpenGL" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
platform/node/CMakeLists.txt:9 (add_node_module)
我需要 heeeelp,我一直在这里试图解决这个问题,但我不知道可能是什么问题..
谢谢大家!
如果你的OpenGL库路径安装定义在你的ENV路径中,
你想设置你的 CMAKE_PREFIX_PATH
到你的 OpenGL 安装路径(你可以将它设置在你的顶层 CMakeList.txt)。