.
QT += core gui multimedia
pro 配置报错
:-1: error: Project ERROR: Unknown module(s) in QT: multimedia
CMAKE 报错
E:\CPlus\XXXX\CMakeLists.txt:48: error: Target "XXXX" links to: Qt6::Multimedia but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing.
原因是Qt6 再安装时候没有安装 Multimedia 模块
Qt6安装 Multimedia 模块
1、Qt安装目录下找到 MaintenanceTool.exe
其他的 无脑操作
2、安装 Multimedia 模块
下一步 下一步 安装更新就可以了。
需要那个就勾选那个,我顺手全选。
然后就可以愉快的玩耍了