Mapbox GL Native无法构建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 ./

然后它返回错误:

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,我一直在这里尝试解决此问题,但我不知道可能是什么问题。

多谢你们!

dboy

如果在ENV路径中定义了OpenGL库路径安装,则需要将其设置CMAKE_PREFIX_PATH为OpenGL安装路径(可以在顶级CMakeList.txt中进行设置)。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

大型GeoJSON无法与MapBox GL配合使用

无法在mapbox GL上渲染矢量点

Mapbox GL NavigationControl事件

mapbox gl geojson样式

如何使用Browserify构建mapbox-gl.js?

react-native-mapbox-gl / maps 如何改变样式?

Mapbox GL JS:无法使用setFeatureState更新要素属性

无法在Mapbox GL JS中使用自定义标记

mapbox-gl-js无法正确显示fill-extrusion

为什么我的Mapbox GL无法正确显示图块?

无法编辑基本的 Mapbox JS GL 示例代码

项目名称'@ mapbox / react-native-mapbox-gl'不得包含以下任何字符:[/,\,::,<,>,“,?,*,|]

Mapbox GL JS与Mapbox.js

使用Mapbox gl双击事件

Mapbox gl 表达式

Mapbox-gl高度100%

Mapbox GL JS getBounds()/ fitBounds()

Mapbox-gl 动画标记

无法将利用mapbox-gl-native库的功能部署到Azure

getZoom和getVisibleBounds方法永远不会在@ mapbox / react-native-mapbox-gl Android中解析

将mapbox-gl-geocoder添加到gatsby.js时,gatsby构建失败

在Webpack中使用mapbox-gl和@ mapbox / mapbox-gl-draw

如何将Mapbox GL Native Android Activity示例Java应用程序转换为NativeScript?

React Native undefined不是一个对象(评估“ Mapbox.GL.UserTrackingModes”)

如何将mapbox-gl-native项目导入Android Studio?

如何使mapbox-gl-js webgl / opengl在ubuntu chrome上工作?

无法访问Mapbox GL JS中的Geolocate Control来更改/添加属性

无法在 ngx-mapbox-gl angular 中显示自定义标记图标

Leaflet 1 Beta 2无法与mapbox-gl.js一起使用