GL/glx.h: No such file or directory compilation terminated.

Created JAR file out/host/common/obj/JAVA_LIBRARIES/temp_layoutlib_intermediates/javalib.jar

-rw-r–r– 1 android android 6867323 2011-05-18 16:16 out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar

host Java: layoutlib (out/host/common/obj/JAVA_LIBRARIES/layoutlib_intermediates/classes)

Note: frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContentResolver.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Install: out/host/linux-x86/framework/layoutlib.jar

Install: out/host/linux-x86/framework/temp_layoutlib.jar

host C++: libEGL_translator <= development/tools/emulator/opengl/host/libs/Translator/EGL/EglX11Api.cpp

In file included from development/tools/emulator/opengl/host/libs/Translator/EGL/../include/EGL/egl.h:36,

from development/tools/emulator/opengl/host/libs/Translator/EGL/EglOsApi.h:19,

from development/tools/emulator/opengl/host/libs/Translator/EGL/EglX11Api.cpp:16:

development/tools/emulator/opengl/host/libs/Translator/EGL/../include/EGL/eglplatform.h:98: fatal error: GL/glx.h: No such file or directory

compilation terminated.

make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libEGL_translator_intermediates/EglX11Api.o] Error 1

———————————————————————————————————————-

Here is the solution for your problem.

All you need to do is, just install the following package.

libgl1-mesa-dev

Here is the command to install in Ubuntu.

$ sudo apt-get install libgl1-mesa-dev


注释:自己在遇到这个问题时,以为是少了Egl的库,于是输入命令apt-cache seach libegl:

接着输入sudo apt-get install libegl1-mesa-dev,发现最后编译还是不同过。

libxcb-glx.so.0: cannot open shared object file: No such file or directory 是一个错误信息,表示无法打开共享对象文件 libxcb-glx.so.0,因为文件或目录不存在。 这个错误通常是由于缺少相关的库文件或者库文件路径设置不正确所致。 要解决这个问题,有几种可能的方法可以尝试: 1. 确保 libxcb-glx.so.0 文件存在于系统中。可以通过在终端中使用命令 `ls -l /path/to/libxcb-glx.so.0` 来检查文件是否存在。如果文件确实不存在,可以尝试重新安装相关的软件包,或者手动将该文件复制到正确的位置。 2. 确保库文件路径正确设置。错误信息中提到了一个路径 "/home/eric/anaconda3/envs/pointnet/lib/python3.6/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so",这是一个与 libxcb-glx.so.0 相关的路径。检查这个路径是否正确,或者是否有其他路径需要设置。 3. 确保相关的库文件已经正确安装。可以使用包管理器来安装 libxcb-glx.so.0 相关的软件包,例如在 Ubuntu 系统上可以使用 apt-get 命令,或者在其他发行版上使用相应的包管理器。 4. 确保软件依赖项已经正确安装。某些软件可能依赖于其他库文件,确保这些依赖项已经正确安装可以解决问题。 5. 尝试重新安装应用程序。错误信息中建议重新安装应用程序,这可能是因为应用程序的配置文件或依赖项发生了一些问题。尝试重新安装应用程序可能会修复这个问题。 请根据具体情况逐一尝试这些方法,并确保按照正确的步骤进行操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [libxxx.so cannot open shared object file No such file or directory](https://blog.csdn.net/weixin_42764932/article/details/120013762)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [libxcb-xinerama.so.0: cannot open shared object file: No such file or directory](https://blog.csdn.net/w5688414/article/details/108428131)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值