主机:fedora 10 ----------2.6.27.5-117.fc10.i686
目标板:XSCALE处理器pxa270
2.6.10
准备:
安装交叉编译工具
export PATH=/usr/local/arm/iwmmxt/bin:$PATH
tar zxvf qt-x11-opensourece-4.4.0.tar.gz
cd qt-x11-opensourece-4.4.0/tool/qvfb
make
cp -p make /usr/lib
export PATH=/usr/bin:PATH
tar zxvf qt-embedded-4.4.0.tar.gz
cd qt-embedded-4.4.0
/*修改qt-embedded-4.4.0/mkspecs/qws/linux-arm-g++/qmake.conf*/
/*中的交叉编译工具为iwmmxt_le-gcc iwmmxt_le-g++等等*/
./configure -embedded arm -qvfb
gmake
su -c "gmake install"
export PATH=/usr/local/Trolltech/embedded-4.4.0-arm/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/Trolltech/embedded-4.4.0-arm/lib:$LD_LIBRARY_PATH
hello:
写一个简单的hello测试程序
移植:
用minicom将主机上的hello程序下载到目标板中,运行./hello -qws
出现问题:
1.没有libQtGui.so.4共享链接库
2.QscreemLinuxFb::connect : no such file or directory
error opening framebuffer device /dev/fb0
解决:
1.将主机中/usr/local/Trolltech/embedded-4.4.0-arm/lib中的libQtGui.so.4,libQtCore.so.4,libQtNetwork.so.4下载到目标板
的/usr/lib
2.cat /proc/fb
0 pxa
1 virtual FB
mknod /dev/fb0 c 29 0
ln -sfv /dev/fb/o /dev/fb0