Indian Smartphones – More towards Android

Just another site

Solution to ‘fatal error: GL/glx.h: No such file or directory’

Are you getting the following error while compiling your Android master branch in your machine?


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/ 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.


Here is the command to install in Ubuntu.

$ sudo apt-get install libgl1-mesa-dev


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: