因此,我尝试了几乎所有能找到的类似问题的答案,但仍然没有找到可行的解决方案。我得到的完整信息是:
(first_kivy_app)bemery94@bemery94-XPS-15-9530:~/Downloads/pygame-1.9.1release$ python setup.py install
running install
running build
running build_py
running build_ext
building 'pygame._camera' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -D_REENTRANT -I/usr/X11R6/include -I/usr/include/SDL -I/usr/include/python2.7 -c src/_camera.c -o build/temp.linux-x86_64-2.7/src/_camera.o
In file included from src/_camera.c:36:0:
src/camera.h:42:32: fatal error: linux/videodev.h: No such file or directory
#include <linux/videodev.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人知道解决办法吗?
感谢您!
答案1
由于问题在于缺失linux/videodev.h
,请尝试安装一个包提供它:
sudo apt-get install gcc-i686-linux-android