Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: macos上使用macdeployqt 打包cef报metal错误 #452

Open
weihualiu opened this issue Nov 1, 2024 · 3 comments
Open

[BUG]: macos上使用macdeployqt 打包cef报metal错误 #452

weihualiu opened this issue Nov 1, 2024 · 3 comments

Comments

@weihualiu
Copy link

weihualiu commented Nov 1, 2024

  • cef从91版本开始默认使用metal,而qt5.15才开始支持metal。目前使用的是qt5.14.2,编译qceview后,在qt中集成打包报metal错误导致gpu子进程启动异常页面无法正常渲染。请问是否有对cef 89版本的LTS版本的长期支持
ERROR: Could not parse otool output line: "\t/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 341.16.0, weak)"
ERROR: Could not parse otool output line: "\t/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 341.16.0, weak)"
ERROR: Could not parse otool output line: "\t/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 341.16.0, weak)"
ERROR: Could not parse otool output line: "\t/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 341.16.0, weak)"
ERROR: Could not parse otool output line: "\t/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 341.16.0, weak)"
ERROR: Could not parse otool output line: "\t/System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 341.16.0, weak)"
@tishion
Copy link
Member

tishion commented Nov 2, 2024

如果你的问题只是换个CEF版本就能解决,你可以通过CMAKE参数设置支持的CMAKE版本

CEF_SDK_VERSION
支持的版本列表

# set CEF version to be used

@weihualiu
Copy link
Author

如果你的问题只是换个CEF版本就能解决,你可以通过CMAKE参数设置支持的CMAKE版本

CEF_SDK_VERSION 支持的版本列表

# set CEF version to be used

目前main分支能使用89版本的正常编译?

@weihualiu
Copy link
Author

用最新main分支,将cef版本改成89,macos编译版本设置为10.11,报以下错误

/Users/rongyitong/Documents/work/code/qcef/QCefView/src/details/QCefViewPrivate.h:245:37: error: unknown type name 'CefAcceleratedPaintInfo'
  245 |   void onOsrUpdateViewTexture(const CefAcceleratedPaintInfo& info, const QRegion& region);
      |                                     ^
/Users/rongyitong/Documents/work/code/qcef/QCefView/src/details/QCefViewPrivate.h:247:38: error: unknown type name 'CefAcceleratedPaintInfo'
  247 |   void onOsrUpdatePopupTexture(const CefAcceleratedPaintInfo& info, const QRegion& region);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants