在听到西摩·帕佩特的S通过后,我想安装UCBLogo(伯克利标志)。Ubuntu的回复只有5.5版本。
下载和解压缩存档、计算它的依赖关系(似乎是libbsd-dev libx11-dev build-essential libwxgtk3.0-dev libtinfo-dev texinfo texlive)并运行./configure之后,运行make会产生以下错误:
gcc -g -O -O0 -DUSE_OLD_TTY -c -o coms.o coms.c
In file included from coms.c:30:0:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
__MATHCALL_VEC (exp,, (_Mdouble_ __x));
^
<builtin>: recipe for target 'coms.o' failed
make: *** [coms.o] Error 1这个包正确地构建在树莓Pi (Raspbian,gcc 4.9.2,armv7l)上,而不是在这台机器上(Ubuntu16.04,gcc 5.4.0,x86_64)。我不希望在系统内部生成错误,包括文件。在这两个系统上,mathcalls.h头看起来非常不同,错误行调用不同的宏。这会不会是gcc-4 -5-5期?
发布于 2017-03-22 04:15:28
我想出了如何编译这段代码:
coms.c和graphics.c中,将include <math.h>行移动到行include "logo.h"之前.configure之后,打开文件makefile并用-lncurses更改对库-ltermcap的调用。然后可以运行make,它应该可以编译OK。
有一件事我还没有解决,那就是如何使用wx工具包进行编译。我的系统上有库,但是.configure和make似乎都忽略了它。
https://askubuntu.com/questions/806220
复制相似问题