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

嵌入式下编译出现 OPENGL 相关报错 #1409

Open
Deng-z-p opened this issue Feb 26, 2022 · 7 comments
Open

嵌入式下编译出现 OPENGL 相关报错 #1409

Deng-z-p opened this issue Feb 26, 2022 · 7 comments

Comments

@Deng-z-p
Copy link

QtAV master, Qt12.9 and csky

/home/a/csky/qtav/QtAV-master/src/QtAV/VideoShader.h:128:42: error: ‘userShaderHeader’ declared as a ‘virtual’ field
virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;}
^~~~~~~~~~~~~
/home/a/csky/qtav/QtAV-master/src/QtAV/VideoShader.h:128:25: error: expected ‘;’ at end of member declaration
virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;}
^~~~~~~~~~~~~~~~
/home/a/csky/qtav/QtAV-master/src/QtAV/VideoShader.h:128:42: error: ‘QOpenGLShader’ has not been declared
virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;}
^~~~~~~~~~~~~
/home/a/csky/qtav/QtAV-master/src/QtAV/VideoShader.h:128:67: error: ISO C++ forbids declaration of ‘ShaderType’ with no type [-fpermissive]
virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;}
^
/home/a/csky/qtav/QtAV-master/src/QtAV/VideoShader.h:128:67: error: expected ‘;’ at end of member declaration
/home/a/csky/qtav/QtAV-master/src/QtAV/VideoShader.h:128:75: error: expected unqualified-id before ‘{’ token
virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;}

请问这个 QTAV 的编译必须要 QT 源码中存在 OPENGL 吗?

@wulongwei
Copy link

wulongwei commented Jan 5, 2023

你好,我在交叉编译时,也遇到了一样的错误。已经编译到这个程度时,已经编译出av和avwidgets,如果你不使用到libopenal,libass,应该做到这步就够了。
image

@original14
Copy link

你好,我想问一下,你们交叉编译成功了吗,我这边报错了,avutil is required,but compiler can not find

@wang-bin
Copy link
Owner

wang-bin commented Jul 9, 2023

请使用新的sdk,无需在编译上浪费时间 https://github.com/wang-bin/mdk-sdk

@original14
Copy link

original14 commented Jul 9, 2023 via email

@original14
Copy link

original14 commented Jul 10, 2023 via email

@original14
Copy link

original14 commented Jul 10, 2023 via email

@wang-bin
Copy link
Owner

能编译能运行也不一定能正常使用,arm平台要看你什么硬解和系统,优化只会在新的sdk支持

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

4 participants