QtAV icon indicating copy to clipboard operation
QtAV copied to clipboard

'QtAV/QtAV_Global.h' file not found

Open jiutianhuanpei opened this issue 4 years ago • 2 comments

QtAV, Qt version and platform

  • QtAV 是的从 Player.app 内拖出来的
  • Qt 5.12.9
  • Mac 10.15.3

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')

jiutianhuanpei avatar Jul 18 '20 18:07 jiutianhuanpei

我也遇到这个问题,请问解决了吗 @jiutianhuanpei

nicksun011 avatar Oct 23 '23 03:10 nicksun011

@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文件中加上

yutianhang avatar Dec 03 '23 06:12 yutianhang