您的位置:首页 > 编程语言 > Python开发

python扩展tre

2012-01-13 16:07 148 查看
为了将tre添加为python 的扩展,供xbmc插件启动、调用,需要在接口函数的源码文件添加#include <Python.h>,重新编译,但是……报错了

serviceSchedule.cpp:24:37: fatal error: Python.h: No such file or directory

compilation terminated.

make[1]: *** [serviceSchedule.o] Error 1

make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/lame-3.98.2/tre_new/mainservice'

make: *** [all] Error 2

需要安装python的开发版,例如yum install python-devel

问题是,现在的编译环境是osc build 下来,然后chroot的,头大了这下……
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: