板子执行qt程序could not find or load the Qt platform plugin "xcb"

交叉编译qt5后放板子上执行应用程序,./qtest 出错could not find or load the Qt platform plugin "xcb"

ls /usr/local/qt5-arm/plugins/platforms/
libqlinuxfb.so    libqminimal.so    libqoffscreen.so
解决方式是后面明确带platform参数
./qtest -platform linuxfb
 

你可能感兴趣的:(Qt)