【buildroot 编译qt ERROR: Feature ‘xxxxx‘ was enabled, but the pre-condition ‘YYYYY‘ && ‘ZZZZZ‘ failed】

遇到buildroot编译qt,configure时出错ERROR: Feature ‘xxxxx’ was enabled, but the pre-condition ‘YYYYY’ && ‘ZZZZZ’ failed!

解决方法,在buildroot/package/qt5/qt5base/qt5/qt5base.mk中加上-recheck-all,然后重新编译

make qt5base,根据编译log查看出错原因。我遇到的错误是libpcre2-16.so没有发现,将libpcre2-16.so copy到/buildroot/output/rockchip_rv1126_rv1109_facial_gate/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/下面,重新编译即可。

交叉编译qt5.9 配置选项中添加-tslib时 报错误: ERROR: Feature ‘tslib’ was enabled, but the pre-condition ‘libs.tslib’ failed.

如果你的交叉编译工具链为arm-linux-gnueabihf,那么你编译tslib时,配置的时候注意./configure --host=arm-linux-gnueabihf --prefix=/home/work/lib/tslib。即host=arm-linux-gnueabihf 而不是arm-linux就可以了。

Qt源码编译configure配置参数

ERROR: Feature ‘fontconfig’ was enabled, but the pre-condition ‘!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig’ failed.

是-fontconfig和-qt-freetype不兼容,用了-fontconfig就必须配着-system-freetype,但是用了-qt-freetype的话就会提示上面的错误,所以这个问题的解决就是写-fontconfig -system-freetype就可以了,把-qt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值