2015-07-10 103 views
0

我为我的树莓pi 2设置了一个交叉编译器,运行 一个小小的GUI项目。 交叉编译的Qt实例工作正常,但是当我运行 我自己的应用程序,我得到一个白色的屏幕和下面的错误:为X11开窗系统交叉编译qt应用程序

着色器编译失败: “”

QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked

QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked

QOpenGLShaderProgram::uniformLocation(pixelSize): shader program is not linked

我猜这个是,对于交叉编译的应用程序的默认帧缓存(EGLFS或LinuxFB根据本Link并不支持所有功能,由应用程序所需的所以我的基本问题是:

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版本:5.4.1 Qt的树莓

桌面操作系统:Ubuntu的14.04

树莓派OS:raspbian喘息

回答

0

我会先看看为什么着色器程序中得到了没有链接第一名。在着色器编译和链接之后,检索编译器/链接器日志并在某处打印日志消息。它通常会告诉你完全放弃,为什么它不起作用。