qt5 error: Failed to open device: No such file or directory, Try again...

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

qt5 error: Failed to open device: No such file or directory, Try again...

5,230 Views
cliffma
Contributor I

we fetch the BSP by executing: repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.78-1.0.0_ga.xml.

we comile root file system by following steps:

   DISTRO=fsl-imx-fb MACHINE=imx6qsabresd source fsl-setup-release.sh  -b build-fb

   bitbake fsl-image-qt5

then we reconfigure kernel source file .config by make menuconfig, add some option to support PCI :

Bus support  --->             

                   [*] PCI support

                   [*] Message Signaled Interrupts (MSI and MSI-X)

         PCI host controller drivers  --->

                            [*] Freescale i.MX6 PCIe controller

we got following issues when excuted qt program such as /usr/share/qt5/examples/touch/fingerpaint:

root@imx6qsabresd:/usr/share/qt5/examples/touch/fingerpaint# ./fingerpaint
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
[ 1] Failed to open device: No such file or directory, Try again...
[ 2] Failed to open device: No such file or directory, Try again...

[ 3] Failed to open device: No such file or directory, Try again...
[ 4] Failed to open device: No such file or directory, Try again...
[ 5] _OpenDevice(1229): FATAL: Failed to open device, errno=No such file or directory.
[ 6] Failed to open device: No such file or directory, Try again...
[ 7] Failed to open device: No such file or directory, Try again...
[ 8] Failed to open device: No such file or directory, Try again...
[ 9] Failed to open device: No such file or directory, Try again...
[ 10] _OpenDevice(1229): FATAL: Failed to open device, errno=No such file or directory.
root@imx6qsabresd:/usr/share/qt5/examples/touch/fingerpaint#
root@imx6qsabresd:/usr/share/qt5/examples/touch/fingerpaint#

could anyone figure out the reasons of situation and how to fix it?

Labels (1)
0 Kudos
2 Replies

3,836 Views
pierre_godichea
Contributor I

Hello,

I m having exactly the same issue.

Can you precise which export solved this issue please ?

Here are my export:

```

export EDITOR="vi"
export FB_FRAMEBUFFER_0="/dev/fb2"
export FB_MULTI_BUFFER="3"
export HOME="/home/root"
export HUSHLOGIN="FALSE"
export HZ="100"
export LD_LIBRARY_PATH="/usr/lib/imx-mm/video-codec/:/usr/lib/imx-mm/audio-codec/:/usr/lib/imx-mm/parser/"
export LOGNAME="root"
export OLDPWD
export OPIEDIR
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PS1="\\u@\\h:\\w\\\$ "
export PWD="/home/root"
export QPEDIR
export QTDIR
export QT_QPA_EGLFS_HIDECURSOR="1"
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="/dev/input/event5"
export QT_QPA_PLATFORM="eglfs"
export SHELL="/bin/sh"
export SHLVL="1"
export TERM="xterm"
export TZ="UTC"
export USER="root"
export XDG_RUNTIME_DIR="/var/run"

```

0 Kudos

3,836 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos