我只是想安装kivy来测试它并制作一些应用程序
我安装了cython和其他东西。
然后我在终端(ubuntu 12.04)中输入:
sudo easy_install kivy
作为回答,我得到了这个:
Searching for kivy
Reading http://pypi.python.org/simple/kivy/
Best match: Kivy 1.2.0
Downloading http://pypi.python.org/packages/source/K/Kivy/Kivy-1.2.0.tar.gz#md5=468da8a353c2ea4936eb92d71403c960
Processing Kivy-1.2.0.tar.gz
Running Kivy-1.2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rcrkeK/Kivy-1.2.0/egg-dist-tmp-xdOqxi
[INFO ] Kivy v1.2.0
WARNING: GLES 2.0 headers are not found
Fallback to Desktop opengl headers.
Build configuration is:
* use_opengl_es2 = False
* use_glew = False
* use_opengl_debug = False
* use_mesagl = False
Generate config.h
Generate config.pxi
In file included from /tmp/easy_install-rcrkeK/Kivy-1.2.0/kivy/graphics/texture.c:273:0:
/tmp/easy_install-rcrkeK/Kivy-1.2.0/kivy/graphics/gl_redirect.h:38:22: fatal error: GL/gl.h: El fitxer o directori no existeix
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
我做错什么了吗?或者我需要安装一些东西?
另外,对于catalan El fitxer o directori no existeix表示找不到文件,非常抱歉。
发布于 2013-02-07 03:05:21
通过apt安装libgl1-mesa-dev包。此外,您可能希望在launchpad上查看构建说明:http://bazaar.launchpad.net/~kivy-team/kivy/packaging/view/head:/debian/control
发布于 2012-04-23 23:50:59
您可能必须安装mesa-common-dev,也请参阅:Debian packages search。
如果您有Nvidia卡,则可能需要安装nvidia-glx-dev。
您可以使用freeglut3-dev中包含的文件glut.h
来尝试同样的问题。同样,请参阅包含该文件的the Debian packages。
发布于 2020-09-04 00:49:38
sudo apt-get install libgl1-mesa-dev
https://stackoverflow.com/questions/10283465
复制相似问题