安装tslib时遇到的问题error: call to ‘__open_missing_mode’ declared with attribute

在Ubuntu环境下搭建嵌入式Qt开发环境并安装tslib时,遇到命令执行中断和编译错误。错误发生在`ts_calibrate.c`文件中,提示`open with O_CREAT in second argument needs 3 arguments`。解决方案是从网上搜索到,需要修改对应源码文件以解决编译问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在按照Ubuntu下  lpp0900320123的嵌入式Qt开发环境的搭建 中的方法步骤安装安装触摸屏校验工具tslib时遇到两个问题:

1.粘贴复制网页上的命令#./configure     --prefix=/usr/local/tslib --host=arm-linux ac_cv_func_malloc_0_nonnull=yes到中断执行时报错。解决办法将命令中所有的空格删掉,在回复。

2.执行完上面命令后,继续执行make,发现报了两个错误:

In function ‘open’,
    inlined from ‘main’ at ts_calibrate.c:227:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In function ‘open’,
    inlined from ‘main’ at ts_calibrate.c:229:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [ts_calibrate.o] Error 1
make[2]: Leaving directory `/o

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值