我在我的笔记本电脑上交叉编译了Qt5.12,并将其安装在运行Raspbian Stretch操作系统的Raspberry Pi 3上。我试图从QtCreator远程调试在RPi上运行的应用程序。
当我使用像./app -platform xcb
这样的命令从RPi终端运行我的Qt应用程序时,它可以正常工作,但是当我尝试从远程调试会话运行相同的应用程序时,我得到以下输出:
Could not load shared library symbols for /usr/local/qt5pi/plugins/platforms/libqxcb.so.
Do you need "set solib-search-path" or "set sysroot"?qt.qpa.xcb: could not connect to display
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/qt5pi/plugins/platforms" 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 (from /usr/local/qt5pi/plugins/platforms),
linuxfb (from /usr/local/qt5pi/plugins/platforms),
minimal (from /usr/local/qt5pi/plugins/platforms),
minimalegl (from /usr/local/qt5pi/plugins/platforms),
offscreen (from /usr/local/qt5pi/plugins/platforms),
vnc (from /usr/local/qt5pi/plugins/platforms),
webgl (from /usr/local/qt5pi/plugins/platforms),
xcb (from /usr/local/qt5pi/plugins/platforms),
eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.
有人经历过这个问题吗?我可以尝试什么来解决它?