在AM5718板卡上运行带有OpenGLES的qt程序,我们想利用板卡上gpu的硬件加速功能实现相关计算,不需要显示图形窗口,因此利用-platform offscreen平台来计算,但是执行了官方的示例程序,结果如下:
root@TK-AQ-REC-XJT-AM5718:/usr/share/examples/opengl/cube# ./cube -platform offscreen QOpenGLWidget is not supported on this platform. This plugin does not support createPlatformOpenGLContext! This plugin does not support createPlatformOpenGLContext! QOpenGLWidget: Failed to create context This plugin does not support createPlatformOpenGLContext! QOpenGLWidget: Failed to create context
是qt的offscreen插件不支持OpenGL上下文的创建,怎么解决?
使用的sdk是AM57xx的08.04.02.01,板卡是公司自己制作的,板卡系统基于sdk中给的uboot、内核、文件系统等等构建的