qt5交叉编译后环境变量配置

qt5完成编译后移到开发板需要配置相应的环境变量,使之有效

export set QT_PLUGIN_PATH=$QTDIR/plugins
export set QT_QPA_PLATFORM_PLUGIN=$QTDIR/plugins/platforms
export set QT_QPA_GENERIC_PLUGINS=tslib:/dev/event$ts
export set QT_QPA_PLATFORM=linuxfb:tty=/dev/tty0
export set QT_QPA_FONTDIR=$QTDIR/lib/fonts/
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib::$LD_LIBRARY_PATH

触摸有效的配置

 export set TSLIB_TSDEVICE=/dev/event$ts
 export set TSLIB_PLUGINDIR=/lib/ts
 export set TSLIB_CONFFILE=/etc/ts.conf
 export set TSLIB_CALIBFILE=/etc/pointercal
 export set TSLIB_FBDEVICE=/dev/fb0
 export set TSEVENTTYPE=input

如果以上配置触摸还不奏效,则添加如下

export LD_PRELOAD=/lib/libts.so

将libts.so添加到预加载路径中

你可能感兴趣的:(qt5交叉编译后环境变量配置)