简体   繁体   English

致命错误:GL/glx.h:没有安装这样的文件或目录 libgl1-mesa-dev

[英]fatal error: GL/glx.h: No such file or directory libgl1-mesa-dev already installed

I'm trying to compile skia to compile aseprite on Ubuntu 19.10, I keep getting the error我正在尝试在 Ubuntu 19.10 上编译skia 以编译 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>
      |          ^~~~~~~~~~

all the posts I've found have said to install libgl1-mesa-dev using apt-get, but I've already done that and I'm still getting the error.我发现的所有帖子都说要使用 apt-get 安装libgl1-mesa-dev ,但我已经这样做了,但仍然出现错误。 I've also tried running install_dependencies.sh in the tools folder, which installed a bunch of other stuff.我还尝试在tools文件夹中运行install_dependencies.sh ,它安装了很多其他东西。

您可以下载 glx 文件并将其复制到您的项目文件中,这将修复错误,但我们不推荐

我想通了,我已经设置 apt-get 将 oibaf ppa 用于图形驱动程序,清除 ppa 并从标准源重新安装修复了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM