This application failed to start because it could not find or load the Qt platform plugin "linuxfb".

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

This application failed to start because it could not find or load the Qt platform plugin "linuxfb".

Jump to solution
6,850 Views
hjpark71
Contributor III

Hi Guys,

form the fsl-image-qt5 rootfs for var-som-mx6,

I'm facing a problem when running QT application like below

root@var-som-mx6:/usr/share/qt5/examples# touch/dials/dials --platform linuxfb

This application failed to start because it could not find or load the Qt platform plugin "linuxfb".

Available platform plugins are: eglfs, minimal, minimalegl, offscreen.

Reinstalling the application may fix this problem.

Aborted

I added linuxfb & xcb on my local.conf and bitbaking again but still facing the same error..

it is /etc/profile.d/tslib.sh

export TSLIB_TSDEVICE=/dev/input/touchscreen0

export TSLIB_CALIBFILE=/etc/pointercal

export TSLIB_CONFFILE=/etc/ts.conf

export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0

export QT_QPA_EGLFS_PHYSICAL_HEIGHT=480

export QT_QPA_EGLFS_PHYSICAL_WIDTH=800

export QT_QPA_EGLFS_HEIGHT=480

export QT_QPA_EGLFS_WIDTH=800

export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1

export QT_QPA_EGLFS_DEPTH=24

export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=800x480:mmSize=800x480

and please refer to my local.conf below.. thanks..

MACHINE ??= 'var-som-mx6'

DISTRO ?= 'fsl-imx-fb'

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES = "debug-tweaks"

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"

ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION = "1"

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

ACCEPT_FSL_EULA = "1"

EXTRA_IMAGE_FEATURES = " debug-tweaks tools-debug eclipse-debug"

IMAGE_INSTALL_append = " tcf-agent openssh-sftp-server qtbase-examples libusb-compat"

DISTRO_FEATURES_append = " xcb linuxfb"

Labels (1)
1 Solution
2,215 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Hj Park,

I’m not familiar with the var-som-mx6 but in case it uses the same basis from the fsl qt image perhaps you may need to append on the qtbase:

PACKAGECONFIG_append_pn-qtbase =  " linuxfb "

Please let us know of your findings!

Regards,

View solution in original post

2 Replies
2,216 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Hj Park,

I’m not familiar with the var-som-mx6 but in case it uses the same basis from the fsl qt image perhaps you may need to append on the qtbase:

PACKAGECONFIG_append_pn-qtbase =  " linuxfb "

Please let us know of your findings!

Regards,

2,215 Views
hjpark71
Contributor III

Great!!..

you fixed my problem..

I have appended linuxfb on DISTRO like this

DISTRO_FEATURES_append = "  linuxfb"

but, it doesn't fix my problem but your below answer fixes my problem..

PACKAGECONFIG_append_pn-qtbase =  " linuxfb "

Thanks a lot..