Qt on iMX6, display problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Qt on iMX6, display problem

跳至解决方案
9,365 次查看
almarto
Contributor IV

Dear all,

I am working on QT Creator 3.4.2 (opensource) Based on Qt 5.5.0 running on ubuntu 14.04LTS. We are trying to create our own application and run it on a SABRE SD platform before creating our own customized board.

We are able to cross-compile correctly, copy the built file to the SABRE SD platform .... but when we try to execute it, we get the following error.

QXcbConnection: Could not connect to display

We run Yocto Linux 3.14.28 on the development platform.

Could you please give us some hints on how to solve this issue?

Thank you very much for your help.

Alvaro Martinez

1 解答
5,624 次查看
almarto
Contributor IV

Hello Alejando,

they work properly. Actually, I have realized that I need to write export DISPLAY=:0 before executing the application from the command line.

By doing this, I can run applications.

This was the problem.

I have very few experience with Linux :-((

Thank you for your help!

Best regards,

alvaro

在原帖中查看解决方案

3 回复数
5,624 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

if you run the qt examples from the fsl-image-qt5 image, do you get the same error?

/Alejandro

0 项奖励
回复
5,625 次查看
almarto
Contributor IV

Hello Alejando,

they work properly. Actually, I have realized that I need to write export DISPLAY=:0 before executing the application from the command line.

By doing this, I can run applications.

This was the problem.

I have very few experience with Linux :-((

Thank you for your help!

Best regards,

alvaro

5,624 次查看
linxiao
Contributor I

Hi,

I write export DISPLAY=:0 then get the following error,:

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

Unable to find an X11 visual which matches EGL config 1

do u have any clues about this?

0 项奖励
回复