Open jiutianhuanpei opened 4 years ago
我也遇到这个问题,请问解决了吗 @jiutianhuanpei
@wang-bin @nicksun011 Player.app和QMLPlayer.app的sdk_osx.sh写的有问题,应该在sdk_osx.sh的write_module_prf方法中,INCLUDEPATH *= $QT_LIBS/Qt${M}.framework/Headers/Qt${M}
后面再加一行INCLUDEPATH *= $QT_LIBS/Qt${M}.framework/Headers
。或者在生成的.prf文件中加上
QtAV, Qt version and platform
Reproduction steps
QtAV的 配置是先执行了 Player.app 及 QMLPlayer.app 里的脚本,又把 Player.app 里的 QtAV, QtAVWidgets 两个库复制到 qt/clang_64/lib 下
应用工程 .pro 文件里添加
QT += core gui avwidgets av
在 main.cpp 里添加引用
#include <QtAV>
再编译就会报错。Log file
/Users/xxx/Qt/Qt5.12.9/5.12.9/clang_64/lib/QtAV.framework/Headers/QtAV/QtAV.h:25: error: 'QtAV/QtAV_Global.h' file not found
include <QtAV/QtAV_Global.h>
/Users/xxx/Qt/Qt5.12.9/5.12.9/clang_64/lib/QtAV.framework/Headers/QtAV/QtAV.h:25: did not find header 'QtAV_Global.h' in framework 'QtAV' (loaded from '/Users/xxx/Qt/Qt5.12.9/5.12.9/clang_64/lib')