专栏中心

EEPW首页 > 专栏 > Compile qtopia 2.2.0 in ubuntu9.04

Compile qtopia 2.2.0 in ubuntu9.04

发布人:0750long 时间:2010-02-09 来源:工程师 发布文章
Compile qtopia 2.2.0 in ubuntu9.04

 

安装好ubuntu 9.04
1.安装G++
  apt-get install build-essential
2.安装编译X11用到的库:
apt-get -y install x-dev libx11-dev x11proto-xext-dev libxext-dev libqt3-mt-dev uuid uuid-dev
安装xlibs-static-dev包
4.export PATH=$PATH:/usr/local/arm/3.4.5/bin
5.patch -p1 < ../qtopia-free-2.2.0.patch
6.
将qmemoryfile_unix.cpp   
if (!f)
        f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY);改为

if (!f)
        f = ::open(tmpFile.latin1(), O_CREAT | O_WRONLY,0666);


7.配置QTopia
echo yes | ./configure   -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -qt-zlib -qt-libpng -gif -no-g++-exceptions -no-qvfb -xplatform linux-arm-g++ -tslib' -qpe 'edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes unifont" -xplatform linux-arm-g++ -luuid' -qt2 '-no-opengl -no-xft' -dqt '-no-xft -thread'

make
8.
qvfbview.cpp:39:22: 错误: asm/page.h:没有该文件或目录
因为这是对上位主机编译qvfb,由于ubuntu9.04的/usr/include/asm没有page.h
因此我们复制相应的page.h到/usr/include/asm

9
kernel/qwsmouse_qws.o kernel/qwsmouse_qws.cpp
kernel/qwsmouse_qws.cpp:63:19: tslib.h: No such file or directory

安装tslib1.4
先安装
apt-get install automake
apt-get install libtool
然后
./autogen.sh
echo ac_cv_func_malloc_0_nonnull=yes>arm-linux.cache
./configure --host=arm-linux --prefix=/usr/local/arm/3.4.5/arm-linux --cache-file=arm-linux.cache
make
make install

10

kernel/qjpegio.cpp:60:21: jpeglib.h: No such file or directory

安装jpegsrc.v6b.tar.gz
配置
./configure --enable-shared --enable-static --prefix=/usr/local/arm/3.4.5/arm-linux --build=i386 --host=arm
然后修改生成的
gedit Makefile &

cc =gcc 改为CC=arm-linux-gcc

AR=ar rc 改为AR=arm-linux-ar rc

AR2=ranlib 改为AR2=arm-linux-rablib
make
make install-lib

11
/usr/local/arm/3.4.5/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make[5]: *** [../../../lib/libqpe.so.1.5.3] 错误 1
安装e2fsprogs-1.40.2.tar.gz

先安装apt-get install texinfo
./configure --host=arm-linux --enable-elf-shlibs --with-cc=arm-linux-gcc --with-linker=arm-linux-ld --prefix=/usr/local/arm/3.4.5/arm-linux
make
make install-libs



enjoy it

专栏文章内容及配图由作者撰写发布,仅供工程师学习之用,如有侵权或者其他违规问题,请联系本站处理。 联系我们

关键词:

相关推荐

用于活动跟踪和高g冲击测量的传感器

花旗分析师:Arm第一季度蚕食了Intel和AMD的市场份额

嵌入式系统 2025-05-15

ICD932编程调试器使用指南

欧洲希望以16亿欧元吸引AI和汽车研发人员

iCAN系列产品选型指南

PXI Express混合信号仪器视频教程

视频 2009-03-24

英特尔市场份额创下2002年以来的最低水平

嵌入式系统 2025-05-15

英伟达刚拿下沙特大单,美国就封杀华为芯片

车辆连接的卫星之战

并行AI RISC-V编译器进入Alpha测试

Nintendo Switch 2官方规格确认GPU类似于移动RTX 2050

瑞萨电子和印度携手开展半导体创新

LCD显示以及数字化仪流盘应用视频演示

视频 2009-03-24

桥梁健康检测系统视频演示

LabVIEW 8.5在各行业的应用集锦

视频 2009-03-24

自由度直升机控制系统视频演示

视频 2009-03-24

美国或允许阿联酋每年进口50万枚英伟达先进芯片

IC与LCD的常见连接方式

更多 培训课堂
更多 焦点
更多 视频

技术专区