安装python-cmake-buildsystem

时间:2014-07-14 18:41:02

标签: installation cpython

我按照这里的安装提示进行了操作:

https://github.com/davidsansome/python-cmake-buildsystem

make

时最终出错
31%] Built target extension_random
[ 31%] Building C object CMakeBuild/extensions/CMakeFiles/extension_readline.dir/home/sadik/scratch/Python-2.7.3/Modules/readline.c.o
/home/sadik/scratch/Python-2.7.3/Modules/readline.c: In function ‘setup_readline’:
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:889:24: error: ‘Function’ undeclared (first use in this function)
     rl_startup_hook = (Function *)on_startup_hook;
                        ^
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:889:24: note: each undeclared identifier is reported only once for each function it appears in
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:889:34: error: expected expression before ‘)’ token
     rl_startup_hook = (Function *)on_startup_hook;
                                  ^
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:891:36: error: expected expression before ‘)’ token
     rl_pre_input_hook = (Function *)on_pre_input_hook;
                                    ^
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:894:41: error: ‘CPPFunction’ undeclared (first use in this function)
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                         ^
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:894:54: error: expected expression before ‘)’ token
     rl_attempted_completion_function = (CPPFunction *)flex_complete;
                                                      ^
/home/sadik/scratch/Python-2.7.3/Modules/readline.c: At top level:
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:739:1: warning: ‘on_startup_hook’ defined but not used [-Wunused-function]
 on_startup_hook(void)
 ^
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:746:1: warning: ‘on_pre_input_hook’ defined but not used [-Wunused-function]
 on_pre_input_hook(void)
 ^
/home/sadik/scratch/Python-2.7.3/Modules/readline.c:841:1: warning: ‘flex_complete’ defined but not used [-Wunused-function]
 flex_complete(char *text, int start, int end)
 ^
make[2]: *** [CMakeBuild/extensions/CMakeFiles/extension_readline.dir/home/sadik/scratch/Python-2.7.3/Modules/readline.c.o] Fehler 1
make[1]: *** [CMakeBuild/extensions/CMakeFiles/extension_readline.dir/all] Fehler 2
make: *** [all] Fehler 2

没有办法联系作者所以我在这里尝试。也许有人有同样的问题。

1 个答案:

答案 0 :(得分:0)

@jcfr(我)现在正在维护python-cmake-buildsystem,有关详细信息,请参见python-cmake-buildsystem/issues/6

c0715508修复了与您报告的内容(与阅读线相关)类似的问题。如果当前版本没有解决问题。我建议你在相关的github跟踪器中创建一个问题,提供有关上下文的更多细节(CMake的版本,编译器,操作系统等......)