查看完整版本: [-- 移植qt到开发板 --]

QTCN开发网 -> Qt嵌入式开发 -> 移植qt到开发板 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

乐毅伐齐 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
请问各位大佬这是什么问题,

firebolt 2019-08-05 13:25
arm上使用4.8更好些,我4.8.5用了好多年了很多功能都没用到。你这个问题可以试试去掉 -no-opengl试试看。

yunchao630 2019-08-06 13:10
我之前也弄过,怎么都不成功,后来发现他们的资料包里面,有配置好环境的虚拟机,直接用的他们的

乐毅伐齐 2019-08-06 14:10
谢谢各位,弄好了,换了一个。


查看完整版本: [-- 移植qt到开发板 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled