编译ZBar时,./configure之后make时提示如下错误。
In file included from /usr/include/stdio.h:937:0,
from zbar/debug.h:60,
from zbar/scanner.c:34:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
解决方法:
export CFLAGS="" //将CFLAGS环境变量置为空
然后重新 ./configure
此时再make,则会成功。
本文介绍了一种解决ZBar编译过程中出现的错误的方法。当使用make命令时如果遇到特定的编译错误,可以通过清空CFLAGS环境变量并重新执行./configure来解决问题。
15万+

被折叠的 条评论
为什么被折叠?



