标题:移植qt到开发板
作者:乐毅伐齐
日期:2019-08-05 11:28
内容:
我是按照网上有个教程按着他的步骤来移植的,原网址在这里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/q ..
#1 [firebolt 08-05 13:25]
arm上使用4.8更好些,我4.8.5用了好多年了很多功能都没用到。你这个问题可以试试去掉 -no-opengl试试看。
#2 [yunchao630 08-06 13:10]
我之前也弄过,怎么都不成功,后来发现他们的资料包里面,有配置好环境的虚拟机,直接用的他们的
#3 [乐毅伐齐 08-06 14:10]
谢谢各位,弄好了,换了一个。