首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建UCB徽标6-数学中的错误。

构建UCB徽标6-数学中的错误。
EN

Ask Ubuntu用户
提问于 2016-08-02 18:36:10
回答 1查看 696关注 0票数 4

在听到西摩·帕佩特的S通过后,我想安装UCBLogo(伯克利标志)。Ubuntu的回复只有5.5版本。

下载和解压缩存档、计算它的依赖关系(似乎是libbsd-dev libx11-dev build-essential libwxgtk3.0-dev libtinfo-dev texinfo texlive)并运行./configure之后,运行make会产生以下错误:

代码语言:javascript
复制
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期?

EN

回答 1

Ask Ubuntu用户

发布于 2017-03-22 04:15:28

我想出了如何编译这段代码:

  • coms.cgraphics.c中,将include <math.h>行移动到行include "logo.h"之前
  • 运行.configure之后,打开文件makefile并用-lncurses更改对库-ltermcap的调用。

然后可以运行make,它应该可以编译OK。

有一件事我还没有解决,那就是如何使用wx工具包进行编译。我的系统上有库,但是.configuremake似乎都忽略了它。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/806220

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档