嵌入式linux开发,交叉编译tslib-1.22时报错:configure:13646: error: possibly undefined macro: AC_MSG_ERROR

在Ubuntu系统中尝试交叉编译tslib-1.22时,遇到错误提示可能未定义宏AC_MSG_ERROR。问题根源在于缺少宏相关的文件。解决方法是通过安装pkg-config包,命令为`sudo apt-get install pkg-config -y`,执行此操作后,编译问题得以解决。
摘要由CSDN通过智能技术生成

一、问题描述。

ubuntu下,交叉编译tslib-1.22,在执行./autogen.sh时报错如下:

ms@ubuntu:~/work/code/tslib/tslib-1.22$ ./autogen.sh
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4/internal'.
libtoolize: copying file 'm4/internal/libtool.m4'
libtoolize: copying file 'm4/internal/ltoptions.m4'
libtoolize: copying file 'm4/internal/ltsugar.m4'
libtoolize: copying file 'm4/internal/ltversion.m4'
libtoolize: copying file 'm4/internal/lt~obsolete.m4'
configure:13646: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
ms@ubuntu:~/work/code/tslib/tslib-1.22$

二、问题分析。

缺少宏相关的文件。

三、解决方案。

安装pkg-config包,即可解决。

sudo apt-get install pkg-config -y

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

寞水

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值