Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/152.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 致命错误:GL/glx.h:尚未安装此类文件或目录libgl1 mesa dev_C++_Skia_Glx - Fatal编程技术网

C++ 致命错误:GL/glx.h:尚未安装此类文件或目录libgl1 mesa dev

C++ 致命错误:GL/glx.h:尚未安装此类文件或目录libgl1 mesa dev,c++,skia,glx,C++,Skia,Glx,我试图在Ubuntu19.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

我试图在Ubuntu19.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>
      |          ^~~~~~~~~~
c++-MMD-MF obj/src/gpu/glx/gpu.GrGLMakeNativeInterface\u glx.o.d-DNDEBUG-DSK\u SAMPLES\u FOR\u X-DSK\u GAMMA\u APPLY\u TO\u A8-DSK\u ALLOW\u STATIC\u全局\u初始值=0-DSK\u ENABLE\u离散化\u gpu-DSKIA\u实现=1-I..//include/android-I..//include/c-I..//include/c-I..//include/codec/I..//include/config/include/core/I../core/I../I../-I..//include/effects-I..//include/encode-I..//include/gpu-I..//include/pathops-I..//include/ports-I..//include/utils-I..//include/utils/mac-I..//include/private-I..//src/c-I..//src/core-I..//src/effects-I..//src/font-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/utils/win I..//src/xml-I..//I..//I..//src/xml-I..//I..//第三方/gif-I..//trict/gpu-fdu-fdi../-f函数节-Wno未使用的参数-std=c++14-fno异常-fno rtti-c../。/src/gpu/gl/glx/GrGLMakeNativeInterface_glx.cpp-o obj/src/gpu/gl/glx/gpu.grglglmakenativeinterface_glx.o
../../src/gpu/gl/glx/GrGLMakeNativeInterface_glx.cpp:15:10:致命错误:gl/glx.h:没有这样的文件或目录
15 |#包括
|          ^~~~~~~~~~

我发现的所有帖子都说要使用apt-get安装
libgl1-mesa-dev
,但我已经这样做了,我仍然会收到错误。我还试着在
tools
文件夹中运行
install\u dependencies.sh
,它安装了许多其他东西

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

我想出来了,我已经设置好使用oibaf ppa作为图形驱动程序,清除ppa并从标准源重新安装修复了它