遇到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就可以了。
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