(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-XC5FF676 V1.1.
(3). Linux OS: Ubuntu10.04.
(4). Toolchains: AndeSight v1.3.3 for Linux.
(5). Embedded Linux2.6.18
2. 目的: 撰寫Shell Scripting執行Qt export參數.
3. 實驗步驟:
(1). 開啟純文字檔,檔名改為〝init.sh〞.
(2). 輸入:
#!/bin/sh
udhcpc eth0
#export tslib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/tmp/lib
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/tmp/etc/pointercal
export TSLIB_CONFFILE=/tmp/etc/ts.conf
export TSLIB_PLUGINDIR=/tmp/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
#cd /tmp/bin
#./ts_calibrate
#export Qt for Embedded Linux
export QTDIR=/usr/local/Trolltech/QtEmbedded-4.6.0-generic
export QWS_KEYBOARD=None
export QWS_MOUSE_PROTO=tslib
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cd /usr
mkdir local
cd /usr/local
mkdir Trolltech
ln -s /tmp/usr/local/Trolltech/QtEmbedded-4.6.0-generic /usr/local/Trolltech/
ln -s /tmp/etc/pointercal /etc/pointercal
printf "\033[9;0]" > /dev/tty0
cd /tmp/demo
./webkit -qws
/bin/sh



http://cid-b01cb9ac20175eaa.skydrive.live.com/self.aspx/Qt%20Creator%5E_lab5/init.sh
沒有留言:
張貼留言