博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
飞凌ok6410 QT程序放到板子上触摸屏无效
阅读量:4180 次
发布时间:2019-05-26

本文共 787 字,大约阅读时间需要 2 分钟。

1、先保存原来/etc/profile

     cp /etc/profile /etc/profile_org

2、修改profile

    vi /etc/profile

在最后行加上

export TS_ROOT=/usr/local/tslibexport TSLIB_TSDEVICE=/dev/input/event2export TSLIB_CONFFILE=$TS_ROOT/etc/ts.confexport TSLIB_PLUGINDIR=$TS_ROOT/lib/tsexport TSLIB_CALIBFILE=/etc/pointercalexport TSLIB_CONSOLEDEVICE=noneexport TSLIB_FBDEVICE=/dev/fb0export QTDIR=/opt/qt-4.7.1export LD_LIBRARY_PATH=$QTDIR/lib:$TS_ROOT/lib:$LD_LIBRARY_PATHexport PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin:$QTDIR/bin:$TS_ROOT/biexport QT_PLUGIN_PATH=$QTDIR/pluginsexport QWS_MOUSE_PROTO=tslib:/dev/input/event2export QWS_DISPLAY=LinuxFb:mmWidth76:mmHeight44:1export QT_QWS_FONTDIR=$QTDIR/lib/fontsexport QWS_KEYBOARD=TTY:/dev/tty1export TSLIB_TSEVENTTYPE=H3600

source /etc/profile

3、重新运行QT程序

./HelloWorld -qws

转载地址:http://wglai.baihongyu.com/

你可能感兴趣的文章
实模式,保护模式与V86模式
查看>>
51 nod 1004
查看>>
ucore lab5
查看>>
实验五 语音识别(选做)
查看>>
441. Arranging Coins(数学)
查看>>
728. Self Dividing Numbers(数学)
查看>>
628. Maximum Product of Three Numbers(排序)
查看>>
747. Largest Number At Least Twice of Others(数组)
查看>>
746. Min Cost Climbing Stairs(dp)
查看>>
724. Find Pivot Index(数组)
查看>>
717. 1-bit and 2-bit Characters(数组)
查看>>
496. Next Greater Element I(单调栈)
查看>>
494. Target Sum(转换+dp)
查看>>
62. Unique Paths(dp)
查看>>
Linux内核-------同步机制(一)
查看>>
485. Max Consecutive Ones(数组)
查看>>
695. Max Area of Island(BFS)
查看>>
287. Find the Duplicate Number(数组)
查看>>
66. Plus One(大数)
查看>>
162. Find Peak Element(二分)
查看>>