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,发现最后编译还是不同过。

你可能感兴趣的:(java,android,command,File,deprecated,compilation)