cd $QTDIR; cat $OPIEDIR/qt/qte23x-all.patch | patch -p1for IPAQ
./configure -qconfig qpe -depths 4,16,24 -xplatform linux-ipaq-g++ -no-qvfb -system-jpeg -system-libpng -system-zlib -vnc -no-xftfor the Sharp Zaurus SL5x00 PDA:
./configure -qconfig qpe -depths 16,32 -xplatform linux-sharp-g++ -no-qvfb -system-jpeg -system-libpng -system-zlib -vnc -no-xfton x86:
./configure -qconfig qpe -depths 4,16,24,32 -system-jpeg -system-libpng -system-zlib -no-xft -qvfb加入 big5 textcodex 這個 qconfig-qpe.h 我加入了 big textcodec
//#ifndef QT_NO_CODECS //#define QT_NO_CODECS //#endif以下是一個範例, 使用 big5 textcodec 來印出中文字串。 傳入一個 std::string 會傳回 QString 以 big5 textcodec 來編碼。
QString string2qstring (const std::string &str, const char *codename = "big5");
QString string2qstring (const std::string &str, const char *codename)
{
QString qstr;
if (codename == 0) // ASCII
{
qstr = QString (str.c_str ());
}
else
{
QTextCodec *codec = QTextCodec::codecForName (codename);
if (codec)
qstr = QString (codec->toUnicode (str.c_str ()));
}
return qstr;
}
使用 makeqpf 造出 qpf 字型檔案:mingliu mingliu.ttc FT n 50 120 u執行
makeqpf -display Transformed:Rot0 -A makeqpf -display Transformed:Rot180 -A makeqpf -display Transformed:Rot270 -A makeqpf -display Transformed:Rot90 -A會產生
mingliu_120_50.qpf mingliu_120_50_t5.qpf mingliu_120_50_t10.qpf mingliu_120_50_t15.qpf畫面旋轉有四個角度, 所以要產生 4 個 fonts, 否則在某個角度就不能顯示了。 畫面的旋轉角度:
export QWS_DISPLAY=Transformed:Rot90:0 export QWS_DISPLAY=Transformed:Rot180:0 export QWS_DISPLAY=Transformed:Rot270:0 export QWS_DISPLAY=Transformed:Rot0:0http://sourceforge.net/projects/bedic
patch zbedic-0.9.1 使用 mingliu 字型
由於覺得 QT 的 unifont 太大而且不是很好看, 我修改了 zbedic-0.9.1 的原始碼使其可以使用 mingliu font。編譯 libbedic-src-0.9.1.tar.gz make ARCH=arm 編譯 zbedic-0.9.1_patch_for_mingliu_font.tar.bz2 修改 Makefile QPEDIR=/mnt/others/opie/opie QTDIR=/mnt/others/opie/qt-2.3.7 將 QPEDIR, QTDIR 指向你的 QT/E, OPIE 路徑, 上例是我的路徑, 所以你得先有 OPIE, QT/E (必須先 compile 起來), 我還沒有完全將 OPIE build 起來, 不過已經可以用來 compile zbedic-0.9.1 了。 make ARCH=arm這裡可以下載 opie sdk
ref:
http://www.ruault.com/Zaurus/ethernet-over-usb-howto.html
http://paar.kh.edu.tw/MT-blog/C700/archives/000026.html
http://www.linux-usb.org/usbnet/
\section{ipaq 透過 usb 上網}
快速導覽
in pc
/sbin/ifconfig usb0 192.168.129.200 broadcast 192.168.129.255 netmask 255.255.255.0
in ipaq:
ifconfig usbf 192.168.129.201
route add -net default gw 192.168.129.200
在 /etc/resolv.conf 加入 dns
nameserver aaa.bbb.ccc.ddd
in pc:
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.129.201 -j MASQUERADE
我安裝的 familiar 0.7.2 有 sshd 可以用,
當連線設定完成後, 就可以用 ssh 登入了。
擺脫慢慢的 minicom 吧!
bootstrap-v0.7.2-h3600.tar
執行 minicom, minicom 需要 lrzsz 套件,
若是在執行 minicom 進行 xmodem, ymodem, zmodem 有問題時,
檢察 lrzsz 是否安裝。
在 familiar bootload 下, type
load root,
可以載入一個 jffs2 的 root file system.
/etc/ipkg.conf
src f http://familiar.handhelds.org/releases/v0.7.2/base/armv4l
src o http://opie.handhelds.org/feed/ipaq/stable/latest/
\section{ipaq 常用的 option}
ipkg command
-force-reinstall
-force-overwrite
-nodeps
-recursive
list // list packages
opie source 取得方法