|
发表于 2020-9-18 15:24:30
只看该作者
沙发
环境变量的配置
export QTDIR=/opt/qt -5.5.1-arm
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QT_QPA_PLATFORM_ PLUGIN_PATH=$QTDIR/plugins
export QT_QPA_FONTDIR=$QTDIR/lib/ fonts
export QWS KEYBOARD=USB: /dev/ input/event2
export QWS MOUSE PROTO=Linuxinput : /dev/ input/event0
export QT_QPA_PLATF0RM=linuxfb: fb=/dev /fb0
第一次运行
firefly@firefly: //home/ firefly/Downloads/build-hello-ARM-Release$ . /hello - qws
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in
Available platform plugins are: linuxfb, minimal, offscreen, vnc.
Reinstalling the application may fix this problem.
Aborted
加了-platform后
root@firefly:/ /opt/qt- 5.5.1- arm/ examples/widgets/mainwindows/application# ./applRMication -platform linuxfb
Failed to mmap f ramebuffer (Invalid argument)
linuxfb: Failed to initialize screen
no screens available, assuming 24-bit color
Cannot create window: no screens avai lable
Aborted |
|