yl1627366632 |
2022-04-20 21:47 |
交叉编译QtAV,报错
arm-linux-gnueabihf-strip /home/yl/arm_QtAV/lib_linux_arm/libQtAVWidgets.so make[1]: Leaving directory '/home/yl/arm_QtAV/widgets' In file included from /home/yl/QtAV/QtAV-master/qml/SGVideoNode.cpp:24:0: /home/yl/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/yl/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/yl/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/yl/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/yl/QtAV/QtAV-master/src/QtAV/VideoShader.h:128:67: error: expected ‘;’ at end of member declaration /home/yl/QtAV/QtAV-master/src/QtAV/VideoShader.h:128:75: error: expected unqualified-id before ‘{’ token virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;} ^ In file included from /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:23:0, from /home/yl/QtAV/QtAV-master/qml/QmlAV/QuickFilter.h:24, from /home/yl/QtAV/QtAV-master/qml/QmlAV/QmlAVPlayer.h:30, from /home/yl/QtAV/QtAV-master/qml/QmlAVPlayer.cpp:22: /home/yl/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/yl/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/yl/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/yl/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/yl/QtAV/QtAV-master/src/QtAV/VideoShader.h:128:67: error: expected ‘;’ at end of member declaration /home/yl/QtAV/QtAV-master/src/QtAV/VideoShader.h:128:75: error: expected unqualified-id before ‘{’ token virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;} ^ In file included from /home/yl/QtAV/QtAV-master/qml/QmlAV/QuickFilter.h:24:0, from /home/yl/QtAV/QtAV-master/qml/QmlAV/QmlAVPlayer.h:30, from /home/yl/QtAV/QtAV-master/qml/QmlAVPlayer.cpp:22: /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:78:17: error: expected ‘;’ at end of member declaration const char* userShaderHeader(QOpenGLShader::ShaderType st) const Q_DECL_OVERRIDE; ^ /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:78:34: error: ‘QOpenGLShader’ has not been declared const char* userShaderHeader(QOpenGLShader::ShaderType st) const Q_DECL_OVERRIDE; ^ /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:78:60: error: expected ‘)’ before ‘st’ const char* userShaderHeader(QOpenGLShader::ShaderType st) const Q_DECL_OVERRIDE; ^ /home/yl/QtAV/QtAV-master/qml/SGVideoNode.cpp: In member function ‘virtual void QtAV::SGVideoMaterialShader::initialize()’: /home/yl/QtAV/QtAV-master/qml/SGVideoNode.cpp:46:62: error: ‘program’ was not declared in this scope virtual void initialize() { m_shader->initialize(program());} ^ /home/yl/QtAV/QtAV-master/qml/SGVideoNode.cpp: In member function ‘virtual void QtAV::SGVideoMaterialShader::updateState(const QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*)’: /home/yl/QtAV/QtAV-master/qml/SGVideoNode.cpp:99:17: error: ‘program’ was not declared in this scope program()->setUniformValue(opacityLocation(), GLfloat(mat->m_opacity)); ^ /home/yl/QtAV/QtAV-master/qml/SGVideoNode.cpp:99:77: error: ‘GLfloat’ was not declared in this scope program()->setUniformValue(opacityLocation(), GLfloat(mat->m_opacity)); ^ /home/yl/QtAV/QtAV-master/qml/SGVideoNode.cpp:102:17: error: ‘program’ was not declared in this scope program()->setUniformValue(matrixLocation(), state.combinedMatrix()); ^ In file included from /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:23:0, from /home/yl/QtAV/QtAV-master/qml/QmlAV/QuickFilter.h:24, from /home/yl/QtAV/QtAV-master/qml/QuickFilter.cpp:22: /home/yl/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/yl/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/yl/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/yl/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/yl/QtAV/QtAV-master/src/QtAV/VideoShader.h:128:67: error: expected ‘;’ at end of member declaration /home/yl/QtAV/QtAV-master/src/QtAV/VideoShader.h:128:75: error: expected unqualified-id before ‘{’ token virtual const char* userShaderHeader(QOpenGLShader::ShaderType) const {return 0;} ^ In file included from /home/yl/QtAV/QtAV-master/qml/QmlAV/QuickFilter.h:24:0, from /home/yl/QtAV/QtAV-master/qml/QuickFilter.cpp:22: /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:78:17: error: expected ‘;’ at end of member declaration const char* userShaderHeader(QOpenGLShader::ShaderType st) const Q_DECL_OVERRIDE; ^ /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:78:34: error: ‘QOpenGLShader’ has not been declared const char* userShaderHeader(QOpenGLShader::ShaderType st) const Q_DECL_OVERRIDE; ^ /home/yl/QtAV/QtAV-master/src/QtAV/VideoShaderObject.h:78:60: error: expected ‘)’ before ‘st’ const char* userShaderHeader(QOpenGLShader::ShaderType st) const Q_DECL_OVERRIDE; ^ /home/yl/QtAV/QtAV-master/qml/QuickFilter.cpp: In member function ‘QtAV::DynamicShaderObject* QuickVideoFilter::shader() const’: /home/yl/QtAV/QtAV-master/qml/QuickFilter.cpp:117:75: error: invalid use of incomplete type ‘class QtAV::OpenGLVideo’ return static_cast<DynamicShaderObject*>(d_func().glslfilter->opengl()->userShader());
|
|