【发布时间】:2015-07-10 10:52:38
【问题描述】:
我为我的树莓派 2 设置了一个交叉编译器来运行 一个小的 GUI 项目。 交叉编译 Qt 示例工作正常,但是当我运行时 我自己的应用程序,我得到一个白屏和以下错误:
着色器编译失败: ""
QOpenGLShaderProgram::uniformLocation(matrix):着色器程序未链接
QOpenGLShaderProgram::uniformLocation(opacity):着色器程序未链接
QOpenGLShaderProgram::uniformLocation(pixelSize):着色器程序未链接
我对此的猜测是,交叉编译应用程序的默认帧缓冲区(根据此 Link 的 EGLFS 或 LinuxFB 不支持应用程序所需的所有功能。所以我的基本问题是:
1. How can I cross-compile a qt project, that uses the X11 windowing System?
2 Is there a way to set this in the configure-options of qt?
Qt 版本:Qt 5.4.1-raspberry
桌面操作系统:Ubuntu 14.04
树莓派操作系统:raspbian wheezy
【问题讨论】:
标签: qt opengl raspberry-pi cross-compiling x11