version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

4,719 次查看
hyejin
Contributor I

Hello, 

I've compiled imx-4.14.98-2.0.0_ga SDK  with below commands.

$ DISTRO=fsl-imx-fb MACHINE=imx6ulevk source fsl-setup-release.sh -b build-qt

$ bitbake fsl-image-qt5

The host OS is Ubuntu 18.04 and GCC version is 7.5 and this SDK has QT 5.10

I downloaded the image file(*.ext4) to my device and run Qt5 example application.

export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH

export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:size=128x160

$ export QT_DEBUG_PLUGINS=1

$ /usr/share/qt5/examples/gui/analogclock/analogclock

But the application crashed with these error messages.

QFactoryLoader::QFactoryLoader() checking directory path "/usr/share/qt5/examples/gui/analogclock/platforms" ...
Cannot load library /usr/lib/qt5/plugins/platforms/libqlinuxfb.so: (/usr/lib/qt5/plugins/platforms/libqlinuxfb.so: symbol _ZN26QPlatformIntegrationPlugin16staticMetaObjectE version Qt_5 not defined in file libQt5Gui.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/usr/lib/qt5/plugins/platforms/libqlinuxfb.so" : "Cannot load library /usr/lib/qt5/plugins/platforms/libqlinuxfb.so: (/usr/lib/qt5/plugins/platforms/libqlinuxfb.so: symbol _ZN26QPlatformIntegrationPlugin16staticMetaObjectE version Qt_5 not defined in file libQt5Gui.so.5 with link time reference)"
This application failed to start because it could not find or load the Qt platform plugin "linuxfb"
in "".

 

Do you have the solution for this error?

标签 (1)
0 项奖励
回复
1 回复

4,561 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Lee,

(1) Checking if those .so files are in path that application wants to access.

(2) Pay attention to LD_LIBRARY_PATH, please!

Basically, some issues that LIB can't be find are related to the MACRO.

In addition, you can also ask for help on QT Forum, there are many disscussions on QT applitions.

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

Hope these information is helpful to you.

B.R,

Weidong

0 项奖励
回复