Project ERROR: Could not find feature when running qmake on any qt module

Project ERROR: Could not find feature when running qmake on any qt module

我正在遵循此处编写的指南:https://wiki.qt.io/RaspberryPi2EGLFS 一切 运行 都很流畅(需要添加字体)- 我可以 运行 从我的电脑上调试我设备上的应用程序。

但是,如果我尝试安装任何模块(qtdeclarative、qt3d、qtquickcontrols、qtquickcontrols2),它会因为缺少某些功能而告诉我不行。 例如:

git clone git://code.qt.io/qt/qtdeclarative.git -b 5.9.0
cd qtdeclarative
~/raspi/qt5/bin/qmake -r

给了我很多积极的代码,但结尾是:

Reading /path/to/raspi/qtdeclarative/src/quick/quick.pro
Project ERROR: Could not find feature qml-network.

其余情况类似。

谁能告诉我该怎么做? 编辑 更糟糕的是,同样的事情发生在 5.9.2 上,但 5.7 与 rpi3

不兼容

努力去做

~/raspi/qt5/bin/qmake

没有 -r 选项。它对我有用。