- 论坛徽章:
- 0
|
Qtopia1(arm-qt with xml)
1. in one the my printed article: web-hotdog4/mpalyer porting
they use cp /dev/fb0 myimage, and cp myimage /dev/fb0, which works on my platform(I issue it in busybox hyper termional), I am happy, but the updated picture is not good, one day I will put the commmand in /etc/init.d/rc.S and see what is gong to happen.
2. write shell script on ARM(yctek sys)
a) #/bin/sh!
b) Mkdir /hello
c) Chmod a+x hello
d) ./hello
3. I delete all the folder name in /etc/linuette/start, then all icons on arm desktop are gone. I mkdir peter here and reboot, then my name is there on arm desktop, it is exciting!
4. export set LD_LIBRARY_PATH=/usr/qt/lib:/usr/linuette/lib works on my board
/usr/linuette/bin # ./alarm
the conmand works, after my export…but I see nothing on the screen
5. now we know –qws is for:
/usr/linuette/bin # ./calibrate
No Qt/Embedded server appears to be running.
If you want to run this program as a server,
add the "-qws" command-line option.
/usr/linuette/bin # ./calibrate –qws
6. QTDIR is recognized on my board
Cannot find font definition file /usr/local/qt-embedded/etc/fonts/fontdir - is $
QTDIR set correctly?
Cannot find font definition file /usr/qt/lib/etc/fonts/fontdir - is $QTDIR set c
orrectly?
7. in the recover_system_pakage/etc/init.d/ there is another rc.S(outside /root-qt-1.0-tar.gz)
obviously this one runs before the one in qt-tar, because there is a line
/sbin/ifconfig eth0 192.168.1.230
but at last the ip of ARM is 1.6, changed by the rc.S in qt-tar
8.so accroding to web7/sbc2410 D.G/p54. if I compiled hello successfully, then I export
LD_LIBRARY_PATH=/usr/qt/lib:/usr/linuette/lib
QTDIR
QTEDIR
./hello –qws will work
so I will have a try.
8./usr/etc/profile
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/qt/bin:/linuette/bin
LD_LIBRARY_PATH=/lib:/usr/lib:/qt/lib:/linuette/lib
QTDIR=/qt
LINUETTEDIR=/linuette
QWS_KEYBOARD=TTY
LANG=zh_CN
TERMINFO_DIRS=/usr/etc
export PATH LD_LIBRARY_PATH QTDIR LINUETTEDIR QWS_KEYBOARD LANG TERMINFO_DIRS
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/56913/showart_511725.html |
|