开发板开机自启动qt程序设置
程序员文章站
2024-01-03 13:21:22
...
- vi /etc/init.d/rcSvi
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/arm-qt/bin:$PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib:/arm-qt/lib
export PATH LD_LIBRARY_PATH
mount -a
mkdir /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
source /etc/profile //导出qt,tslib环境变量
/sbin/hwclock -s
cd /
./QClock &
- source /etc/init.d/rcS 保存文件