• 3093阅读
  • 3回复

[提问]移植qt到开发板 [复制链接]

上一主题 下一主题
离线乐毅伐齐
 

只看楼主 倒序阅读 楼主  发表于: 2019-08-05
我是按照网上有个教程按着他的步骤来移植的,原网址在这里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

只看该作者 1楼 发表于: 2019-08-05
arm上使用4.8更好些,我4.8.5用了好多年了很多功能都没用到。你这个问题可以试试去掉 -no-opengl试试看。
离线yunchao630

只看该作者 2楼 发表于: 2019-08-06
我之前也弄过,怎么都不成功,后来发现他们的资料包里面,有配置好环境的虚拟机,直接用的他们的
离线乐毅伐齐

只看该作者 3楼 发表于: 2019-08-06
谢谢各位,弄好了,换了一个。
快速回复
限100 字节
 
上一个 下一个