QT:qmake无法识别3dcore,3drender

QT: qmake not recognising 3dcore, 3drender

本文关键字:3dcore 3drender 识别 qmake QT      更新时间:2023-10-16

我正在使用qmake来编译我的QT项目。在我的.pro文件中,我有一行:

QT += 3dcore 3drender 3dinput 3dextras

执行qmake myprofile.pro时出现错误:

Project ERROR: Unknown module(s) in QT: 3dcore 3drender 3dinput 3dextras

我正在使用Ubuntu17并安装了QT5。如何让它与qmake一起工作?我在代码中包含像<Qt3DCore>这样的库,所以我需要这些模块,如这里建议的那样。

Qt 5.7中引入的3dcore,Ubuntu 17默认只有5.6。如果您有此类问题,则需要更新库。