c++ - 致命错误:GL/glx.h:没有这样的文件或目录 libgl1-mesa-dev 已经安装
问题描述
我正在尝试编译 skia 以在 Ubuntu 19.10 上编译 aseprite,我不断收到错误消息
c++ -MMD -MF obj/src/gpu/gl/glx/gpu.GrGLMakeNativeInterface_glx.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -DSK_GAMMA_APPLY_TO_A8 -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0 -DSK_ENABLE_DISCRETE_GPU -DSKIA_IMPLEMENTATION=1 -I../../include/android -I../../include/c -I../../include/codec -I../../include/config -I../../include/core -I../../include/docs -I../../include/effects -I../../include/encode -I../../include/gpu -I../../include/atlastext -I../../include/pathops -I../../include/ports -I../../include/svg -I../../include/utils -I../../include/utils/mac -I../../include/private -I../../src/c -I../../src/codec -I../../src/core -I../../src/effects -I../../src/fonts -I../../src/image -I../../src/images -I../../src/lazy -I../../src/opts -I../../src/pathops -I../../src/pdf -I../../src/ports -I../../src/sfnt -I../../src/shaders -I../../src/shaders/gradients -I../../src/sksl -I../../src/utils -I../../src/utils/win -I../../src/xml -I../../third_party/gif -I../../src/gpu -fstrict-aliasing -fPIC -O3 -fdata-sections -ffunction-sections -Wno-unused-parameter -std=c++14 -fno-exceptions -fno-rtti -c ../../src/gpu/gl/glx/GrGLMakeNativeInterface_glx.cpp -o obj/src/gpu/gl/glx/gpu.GrGLMakeNativeInterface_glx.o
../../src/gpu/gl/glx/GrGLMakeNativeInterface_glx.cpp:15:10: fatal error: GL/glx.h: No such file or directory
15 | #include <GL/glx.h>
| ^~~~~~~~~~
我发现的所有帖子都说要libgl1-mesa-dev
使用 apt-get 进行安装,但我已经这样做了,但仍然出现错误。我也试过install_dependencies.sh
在tools
文件夹中运行,它安装了一堆其他的东西。
解决方案
您可以下载 glx 文件并将其复制到您的项目文件中,这将修复错误,但我们不推荐
推荐阅读
- mysql - "SELECT * FROM view_table WHERE cause" => 但结果总是重新排序
- r - 如何在ggplot中将Y轴上的数字隔开
- javascript - 有没有办法在我的 Vue 代码中使用 javascript 创建一个字符串资源文件?
- javascript - 如果子按钮为绿色,则更改主按钮颜色
- javascript - 如何在 Google Chart 中反映 addRows 下的函数输出
- python - LookupError: 试图加载分词器/punkt/english.pickle
- c# - 检测数据库中发生的修改并更新我的网格
- javascript - 由于无法读取未定义的属性“道具”,无法使用反应获取错误进行路由
- javascript - 分页时如何处理大型选择集
- c# - BitmapDecoder.CreatAsync(RandomAccessStream) 抛出异常