AnsweredAssumed Answered

Display issue while using QTcreator5.0.1

Question asked by Abhijeet Gokar on Sep 11, 2019
Latest reply on Sep 16, 2019 by karan gajjar

Problem statement: On our custom board I.MX6q based, we have ported qt5. Developed simple Hello world application and ported on hardware using QTcreator5.0.1. The application successfully copied into the home/root Path. Got following error

Resize:  can't open terminal /dev/tty
QXcbConnection: Could not connect to display :0.0
sh: line 1:   445 Aborted                 DISPLAY=:0.0 /home/root/Final_2
Remote application finished with exit code 134.

After some search, through command line specified export DISPLAY=:0.0, Doesn’t work.

Following is local.config. what is missing?

MACHINE ??= 'imx6qonlinepdd'

DISTRO ?= 'poky'

DISTRO_FEATURES_BACKFILL_CONSIDERED = "bluez5"

DISTRO_FEATURES_append = "x11"

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks dev-pkgs ssh-server-openssh"

USER_CLASSES ?= "buildstats image-mklibs"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\

STOPTASKS,${TMPDIR},1G,100K \

STOPTASKS,${DL_DIR},1G,100K \

STOPTASKS,${SSTATE_DIR},1G,100K \

STOPTASKS,/tmp,100M,100K \

ABORT,${TMPDIR},100M,1K \

ABORT,${DL_DIR},100M,1K \

ABORT,${SSTATE_DIR},100M,1K \

ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-native = " sdl"

PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"

PACKAGECONFIG_append_pn-gstreamer1.0-plugins-bad = " opencv"

CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = "1"

IMAGE_INSTALL_append += " util-linux imx-vpu"

IMAGE_INSTALL_append += " kernel-modules"

IMAGE_INSTALL_append += " gstreamer1.0-plugins-bad-opencv"

IMAGE_INSTALL_append += " opencv opencv-samples libgomp"

CORE_IMAGE_EXTRA_INSTALL += " libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"

IMAGE_INSTALL_append = " \

coreutils \

linux-firmware \

qtbase \

qtbase-fonts \

qtbase-plugins \

cinematicexperience \

openssh-sftp-server \

xterm \

mtd-utils \

 

How to resolve this error?

BHUPESH PATIL

Outcomes