当前位置:网站首页>anno arm移植Qt环境后,编译正常,程序无法正常启动问题的记录

anno arm移植Qt环境后,编译正常,程序无法正常启动问题的记录

2022-08-09 17:24:00 hellozhengyuan

anno arm移植Qt环境后,编译正常,程序无法正常启动问题的记录

 

Cannot load library libqxcb.so: (libQt5XcbQpa.so.5: symbol , version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)

 

在Arm板上移植Qt环境后(源码重新编译方式install),对程序能够编译,但是在启动程序时报错:


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/smartcamera/advertiser/release/platforms" ...
Cannot load library /opt/qt/plugins/platforms/libqxcb.so: (/opt/qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)
QLibraryPrivate::loadPlugin failed on "/opt/qt/plugins/platforms/libqxcb.so" : "Cannot load library /opt/qt/plugins/libqxcb.so: (/opt/qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5: symbol _ZN11QFontEngine14bitmapForGlyphEj6QFixedRK10QTransform, version Qt_5_PRIVATE_API not defined in file libQt5Gui.so.5 with link time reference)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

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

Aborted (core dumped)


网络类似问题:https://stackoverflow.com/questions/59809703/could-not-load-the-qt-platform-plugin-xcb-in-even-though-it-was-found 

此问题尝试了各种网络上的解决办法,关于环境的设置和生效也尝试过,也不能确定是不是因为插件版本的问题导致,但是在arm板上依然没有得到解决,中止。

原网站

版权声明
本文为[hellozhengyuan]所创,转载请带上原文链接,感谢
https://blog.csdn.net/baidu_20351223/article/details/106020809