Display issue while using QTcreator5.0.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Display issue while using QTcreator5.0.1

1,036 Views
abhijeet_ghodga
Contributor III

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?

bhupeshpatil

Labels (1)
7 Replies

838 Views
karangajjar
Senior Contributor II

Hi Abhijeet Gokar ,

Can you let us know which yocto images you have used? Try building fsl-image-qt5-validation-imx image and check if sample QT application is working.

Regards,

Karan Gajjar

0 Kudos
Reply

838 Views
abhijeet_ghodga
Contributor III

I have built two things till now: the image (with all it patch files included in another layer in sources), and I have built a SDK meta-toolchain-qt5.

Should I try to built fsl-image-qt5-validation-imx directly, or do I need to do any prior settings?

0 Kudos
Reply

838 Views
karangajjar
Senior Contributor II

Hi Abhijeet Gokar,

Yes, please try and build fsl-image-qt5-validation-imx directly and test.

You can find the documents related to imx6q below. For building image please follow yocto user guide and for setting HDMI or LVDS display please checkout linux user guide.

https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0-LINUX-DOCS 

Regards,

Karan Gajjar

838 Views
abhijeet_ghodga
Contributor III

The image, fsl-image-qt5-validation-imx is not being detected by the bitbake command.

0 Kudos
Reply

838 Views
karangajjar
Senior Contributor II

Hi Abhijeet Gokar ,

You are using imx6Q, can you tell us which yocto version you are using?

Regards,

Karan Gajjar

0 Kudos
Reply

838 Views
abhijeet_ghodga
Contributor III

I am using jethro version, and poky 2.0.2. The linux kernel version is 3.14.

0 Kudos
Reply

838 Views
karangajjar
Senior Contributor II

Hi Abhijeet Gokar,

You linux kernel looks quite old, kindly check below document for yocto and linux 3.14, as per your source. You might need to build fsl-image-qt5.

https://www.nxp.com/webapp/Download?colCode=L3.14.28_1.0.0_LINUX_DOCS 

https://www.nxp.com/webapp/Download?colCode=L3.14.52_1.1.0_LINUX_DOCS 

Regards,

Karan Gajjar