乐毅伐齐 |
2019-08-05 11:28 |
移植qt到开发板
我是按照网上有个教程按着他的步骤来移植的,原网址在这里https://www.maxlicheng.com/embedded/523.html 在make install的时候出现了问题: qpaintervideosurface.cpp: In function ‘void makeCurrent(QGLContext*)’: qpaintervideosurface.cpp:67:12: error: invalid use of incomplete type ‘class QGLContext’ context->makeCurrent();// ^~ In file included from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/qwidget.h:1:0, from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/../../src/widgets/widgets/qabstractbutton.h:46, from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/qabstractbutton.h:1, from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/QtWidgets:6, from ../../include/QtMultimediaWidgets/QtMultimediaWidgetsDepends:6: /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/../../src/widgets/kernel/qwidget.h:703:18: note: forward declaration of ‘class QGLContext’ friend class QGLContext; ^~~~~~~~~~ qpaintervideosurface.cpp:69:26: error: invalid use of incomplete type ‘class QGLContext’ auto handle = context->contextHandle();// ^~ In file included from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/qwidget.h:1:0, from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/../../src/widgets/widgets/qabstractbutton.h:46, from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/qabstractbutton.h:1, from /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/QtWidgets:6, from ../../include/QtMultimediaWidgets/QtMultimediaWidgetsDepends:6: /home/snac/qt-everywhere-src-5.12.4/qtbase/include/QtWidgets/../../src/widgets/kernel/qwidget.h:703:18: note: forward declaration of ‘class QGLContext’ friend class QGLContext; ^~~~~~~~~~ qpaintervideosurface.cpp:70:35: error: incomplete type ‘QOpenGLContext’ used in nested name specifier if (handle && QOpenGLContext::currentContext() != handle) ^~~~~~~~~~~~~~ qpaintervideosurface.cpp: At global scope: qpaintervideosurface.cpp:65:13: warning: ‘void makeCurrent(QGLContext*)’ defined but not used [-Wunused-function] static void makeCurrent(QGLContext *context) ^~~~~~~~~~~ Makefile:4906: recipe for target '.obj/qpaintervideosurface.o' failed make[3]: *** [.obj/qpaintervideosurface.o] Error 1 make[3]: Leaving directory '/home/snac/qt-everywhere-src-5.12.4/qtmultimedia/src/multimediawidgets' Makefile:85: recipe for target 'sub-multimediawidgets-install_subtargets' failed make[2]: *** [sub-multimediawidgets-install_subtargets] Error 2 make[2]: Leaving directory '/home/snac/qt-everywhere-src-5.12.4/qtmultimedia/src' Makefile:60: recipe for target 'sub-src-install_subtargets' failed make[1]: *** [sub-src-install_subtargets] Error 2 make[1]: Leaving directory '/home/snac/qt-everywhere-src-5.12.4/qtmultimedia' Makefile:589: recipe for target 'module-qtmultimedia-install_subtargets' failed make: *** [module-qtmultimedia-install_subtargets] Error 2 请问各位大佬这是什么问题,
|
|