背景 树莓派 4B 交叉编译 QT5.14.2 过程中,遇到如下报错 #执行 configure 提示如下错误 ERROR: Feature 'pkg-config' was enabled, but the pre-condition 'tests.pkg-config' failed 解决方案 1. 在树莓派上安装 sudo apt-get install pkg-config sudo apt-get install pkgconf 2. 重新利用 rsync 同步到 host 端 3. 建议重新解压 QT 源码执行配置