-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Compilation error with Qt+USING_GLES2 (and unrelated FFmpeg 4 warnings) #11495
Comments
FFmpeg doesn't really maintain backwards compatibility or a good API change log. You should always assume that updating ffmpeg will break anything that uses it which isn't a simple track based video/music player. We compile and test against a stock 3.0.2 and don't really gain anything from changes in newer versions (we mainly use the obscure codec the PSP uses, which hasn't had changes in FFmpeg in years.) That said, pull requests accepted. -[Unknown] |
Probably a duplicate of #10664, #9032 or #7479. Below is an excerpt: In file included from /usr/include/qt5/QtGui/qopengl.h:141,
from /usr/include/qt5/QtOpenGL/qgl.h:45,
from /usr/include/qt5/QtOpenGL/QGLWidget:1,
from /builddir/build/BUILD/ppsspp/Qt/QtMain.h:8,
from /builddir/build/BUILD/ppsspp/Qt/QtMain.cpp:30:
/usr/include/GL/gl.h:794:49: error: 'void glReadBuffer(GLenum)' redeclared as different kind of symbol
GLAPI void GLAPIENTRY glReadBuffer( GLenum mode );
^
In file included from /builddir/build/BUILD/ppsspp/ext/native/gfx/gl_common.h:25,
from /builddir/build/BUILD/ppsspp/ext/native/gfx_es2/glsl_program.h:10,
from /builddir/build/BUILD/ppsspp/Qt/QtMain.h:7,
from /builddir/build/BUILD/ppsspp/Qt/QtMain.cpp:30:
/builddir/build/BUILD/ppsspp/ext/native/gfx/../gfx_es2/gl3stub.h:396:49: note: previous declaration 'void (* glReadBuffer)(GLenum)'
extern GL_APICALL void (* GL_APIENTRY glReadBuffer) (GLenum mode);
^~~~~~~~~~~~ |
Hm. That's because I don't see that error quoted originally, but I do see -[Unknown] |
ffmpeg 4.0 support was fixed in 70c54a7, so I've looked at "Full build log: here" and quoted the actual error.
In file included from .../ppsspp-1.7/Qt/QtMain.cpp:30:
.../ppsspp-1.7/Qt/QtMain.h:107:23: error: unknown class name 'QGLWidget';
did you mean 'QWidget'?
class MainUI : public QGLWidget
^~~~~~~~~
QWidget
/usr/local/include/qt5/QtWidgets/qwidget.h:128:24: note: 'QWidget' declared here
class Q_WIDGETS_EXPORT QWidget : public QObject, public QPaintDevice
^
.../ppsspp-1.7/Qt/QtMain.cpp:230:2: error: initializer 'QGLWidget' does
not name a non-static data member or base class; did you mean the base class 'QWidget'?
QGLWidget(parent)
^~~~~~~~~
QWidget
.../ppsspp-1.7/Qt/QtMain.h:107:16: note: base class 'QWidget' specified
here
class MainUI : public QGLWidget
^~~~~~~~~~~~~~~~
.../ppsspp-1.7/Qt/QtMain.cpp:289:5: error: use of undeclared identifier
'updateGL'; did you mean 'update'?
updateGL();
^~~~~~~~
update
/usr/local/include/qt5/QtWidgets/qwidget.h:459:10: note: 'update' declared here
void update();
^
.../ppsspp-1.7/Qt/QtMain.cpp:295:5: error: use of undeclared identifier
'QGLWidget'; did you mean 'QWidget'?
QGLWidget::changeEvent(e);
^~~~~~~~~
QWidget
/usr/local/include/qt5/QtWidgets/qwidget.h:128:24: note: 'QWidget' declared here
class Q_WIDGETS_EXPORT QWidget : public QObject, public QPaintDevice
^
4 errors generated. |
See hrydgard#11495 - thanks to Jan Beich.
Okay, hopefully #11507 fixes this, then. -[Unknown] |
See hrydgard#11495 - thanks to Jan Beich.
Changes in #11507 are working for me. |
Hello everyone.
What happens?
PPSSPP-1.7
does not compile agaistFFmpeg-4.0.2
whenUSING_GLES2
option is on:What should happen?
No errors.
What hardware, operating system, and PPSSPP version? On desktop, GPU matters for graphical issues.
It's a test build on RPM build system on Fedora 28 x86_64.
Full build log: here
Dependencies list: here
The text was updated successfully, but these errors were encountered: