12

我正在尝试在 Ubuntu Linux 上构建冰淇淋三明治模拟器。

收到以下错误:

host C++: libGLcommon <= development/tools/emulator/opengl/host/libs/
Translator/GLcommon/GLDispatch.cpp

development/tools/emulator/opengl/host/libs/Translator/GLcommon/
GLDispatch.cpp:22:20: error: GL/glx.h: No such file or directory

development/tools/emulator/opengl/host/libs/Translator/GLcommon/
GLDispatch.cpp: In function ‘void (* getGLFuncAddress(const char*))
()’:

development/tools/emulator/opengl/host/libs/Translator/GLcommon/
GLDispatch.cpp:35: error: ‘glXGetProcAddress’ was not declared in this
scope

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/
libGLcommon_intermediates/GLDispatch.o] Error 1
make: *** Waiting for unfinished jobs....

有人可以帮我吗?

4

3 回答 3

7

看起来你丢失了glx.h文件。这是由几个软件包提供的,您需要安装其中一个。我很确定你想要的是mesa-common-dev.

于 2011-11-15T15:31:38.990 回答
0

On Fedora 16, you need to install mesa-libGL-devel pacakge.

于 2011-11-29T22:07:12.133 回答
0

转到http://packages.debian.org/fi/sid/mesa-common-dev 并下载你想要的包然后使用命令 sudo dpkg -i **.dev

于 2011-12-19T02:26:29.590 回答