您的位置:首页 > 其它

编辑文章 - 博客频道 - CSDN.NET

2014-02-23 20:11 225 查看
首先解压后进行configure,configure后没有出错

[root@localhost pbc-0.5.12]# ./configure
--prefix="${SYSROOT}/usr"
--host=arm-linux -androideabi CFLAGS="--sysroot
$SYSROOT"
--enable-static$
make
-j5$
make
install

If a cross compiler is detected then cross compile mode will be used

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for arm-linux-strip... arm-linux-strip

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether arm-linux-gcc accepts -g... yes

checking for unistd.h... yes

checking for dlfcn.h... yes

checking for objdir... .libs

checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes

checking for arm-linux-gcc option to produce PIC... -fPIC -DPIC

checking if arm-linux-gcc PIC flag -fPIC -DPIC works... yes

checking whether arm-linux-gcc accepts -g... (cached) yes

global build variables

...

-----------------------------------------

Tue Oct 11 13:56:18 CST 2011

host info: arm-unknown-linux-gnu

optimized build: no

LDFLAGS:

CPPFLAGS:

CFLAGS: -Wall -W -Wfloat-equal -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wredundant-decls -Wendif-labels -Wshadow -pipe -ffast-math -U__STRICT_ANSI__ -std=gnu99 -g -O2

在make的时候出错了

[root@localhost pbc-0.5.12]# make

misc/extend_printf.c: In function 'do_print':

misc/extend_printf.c:75: error: incompatible type for argument 3 of

'fstrcb'

misc/extend_printf.c:75: note: expected 'va_list' but argument is of

type 'void *'

make[2]: *** [libpbc_la-extend_printf.lo] Error 1

make[2]: Leaving directory `/home/zhaohui/pbc-0.5.12'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/zhaohui/pbc-0.5.12'

make: *** [all] Error 2

解决办法:将./configure改为LDFLAGS="-lgmp" ./configure,然后再进行make就ok了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: