qt环境设置
#!/bin/sh
# you should run the following command line to source this file
#
# source /root/qtenv.sh
#
export TSLIB_TSEVENTTYPE=H3600
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_TSDEVICE=/dev/input/event0
export QWS_MOUSE_PROTO=tslib:$TSLIB_TSDEVICE
export QT_QWS_FONTDIR=/opt/Qt-4.8.4/lib/fonts
#export QWS_KEYBOARD=USB:/dev/input/event2
#export QWS_MOUSE_PROTO=USB:/dev/input/event1
#Qt5环境变量
# export QT_ROOT=/RK3128-QT5/arm-qt5
# export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0
# export QT_QPA_FONTDIR=$QT_ROOT/fonts
# export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
# export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
# export QT_PLUGIN_PATH=$QT_ROOT/plugins
# export LD_LIBRARY_PATH=$QT_ROOT/lib:$QT_ROOT/plugins/platforms
# export QML2_IMPORT_PATH=$QT_ROOT/qml
# export QT_QPA_FB_TSLIB=1
# export QT_QPA_FB_DRM=1
#触摸屏插件
# export TSLIB_ROOT=/RK3128-QT5/tslib
# export TSLIB_CONSOLEDEVICE=none
# export TSLIB_FBDEVICE=/dev/fb0
# export TSLIB_TSDEVICE=/dev/input/event0
# export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
# export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
# export TSLIB_CALIBFILE=/etc/pointercal
# export LD_PRELOAD=$TSLIB_ROOT/lib/libts.so