QT5 Application

Started by MHayer, January 16, 2017, 01:27:02 PM

Previous topic - Next topic

MHayer

Hello,

we have an A20-OLinuxXino-Lime2-eMMC with the LCD-OLinuXino-4.3TS and the A20-LIME2-eMMC-DEBIAN-SD system.
Quote
Kernel: 3.4.103-00033-g9a1cd03-dirty
Distributor ID: Debian
Description:    Debian GNU/Linux 8.6 (jessie)
Release:        8.6
Codename:       jessie

Compiler: arm-linux-gnueabihf
QT5 5.3.2

The system is extended now by a bunch of 'apt-get install'.
The window manager is active.
We want to use an QT Application. For testing we have only an little window with one Button.
The compiling of the software is made directly on the system.

When executing the application and show an QT Window this message occurs:
Quote
QXcbConnection: Could not connect to display
Aborted
And the application is closed.

I have the feeling that the configuration of the QT is not correct.
Maybe we need to configure that the QT is working on the 4.3" Display?

Thanks
M. Hayer

Gerrit

Are you able to start other graphical programs at the same way as you try your program, sometimes when you do a su or sudo the DISPLAY environment variable is not set.

a solution could be


DISPLAY="localhost:10.0" yourprogram


or export DISPLAY="localhost:10.0"
yourprogram