移植Qtopia-opensource-src-4.3.2 (copy)

移植Qtopia-opensource-src-4.3.2 (copy)

移植Qtopia-opensource-src-4.3.2

http://blog.chinaunix.net/u3/91092/article_106802.html
1、下载
下载地址:ftp://ftp.trolltech.com/qtopia/source/qtopia-opensource-src-4.3.2.tar.gz

2、准备工作
建立build目录和安装目录:
/opt/qtopia/source 源代码解压到该目录
/opt/qtopia/target 编译目录
/usr/local/qtopia 安装目录

3、编译tslib-1.3.tar.bz2
详细步骤如下:
# tar jxvf tslib-1.3.tar.bz2 
# cd tslib-1.3
# export CC=arm-linux-gcc
# export CXX=arm-linux-g++
# ./autogen.sh
# ./configure --prefix=/opt/tslib --host=arm-linux
# make
# make install

注意:
当然,在ubuntu下要先安装两个工具,如果没安装,./autogen.sh是通不过的,安装如下:
#sudo apt-get install libtool automake
Make 过程中有个错误,如下:
libtool:link: only absolute run-paths are allowed
要修改/tslib/plugins/Makefile里面找rpath将
LDFLAGS :=$(LDFLAGS) -rpath $(PLUGIN_DIR)
修改为:
LDFLAGS :=$(LDFLAGS) -rpath `cd $(PLUGIN_DIR) && pw……

<P>1、下载<BR>下载地址:<A href="ftp://ftp.trolltech.com/qtopia/source/qtopia-opensource-src-4.3.2.tar.gz">ftp://ftp.trolltech.com/qtopia/source/qtopia-opensource-src-4.3.2.tar.gz</A></P> <P>2、准备工作<BR>建立build目录和安装目录:<BR>/opt/qtopia/source 源代码解压到该目录<BR>/opt/qtopia/target 编译目录<BR>/usr/local/qtopia 安装目录</P> <P>3、编译tslib-1.3.tar.bz2 <BR>详细步骤如下: <BR># tar jxvf tslib-1.3.tar.bz2&nbsp; <BR># cd tslib-1.3 <BR># export CC=arm-linux-gcc <BR># export CXX=arm-linux-g++ <BR># ./autogen.sh <BR># ./configure --prefix=/opt/tslib --host=arm-linux <BR># make <BR># make install</P> <P>注意:<BR>当然,在ubuntu下要先安装两个工具,如果没安装,./autogen.sh是通不过的,安装如下:<BR>#sudo apt-get install libtool automake<BR>Make 过程中有个错误,如下:<BR>libtool:link: only absolute run-paths are allowed<BR>要修改/tslib/plugins/Makefile里面找rpath将<BR>LDFLAGS :=$(LDFLAGS) -rpath $(PLUGIN_DIR)<BR>修改为:<BR>LDFLAGS :=$(LDFLAGS) -rpath `cd $(PLUGIN_DIR) &amp;&amp; pw……
查看全文
发表于:2009-05-02 ┆ 阅读(536)评论(0)

ubuntu 8.10下建立Qt/Embedded 4.5开发环境
上次编译了Qt-4.5.0,现在又忍不住编译了QtEmbedded-4.5.0,过程如下:

一、下载
qt-embedded-linux-opensource-src-4.5.0.tar.gz
qt-x11-opensource-src-4.5.0.tar.gz

二、编译安装qt-embedded
# tar -zxvf qt-embedded-linux-opensource-src-4.5.0.tar.gz
# cd qt-embedded-linux-opensource-src-4.5.0
# ./configure -embedded x86 -qvfb
# make
# make install
qt-embedded 被安装在这个目录下/usr/local/Trolltech/QtEmbedded-4.5.0

设置环境变量:
# vi ~/.bashrc
把下面的加上去
export QTEDIR=/usr/local/Trolltech/QtEmbedded-4.5.0
export PATH=/usr/local/Trolltech/QtEmbedded-4.5.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.5.0/lib:$LD_LIBRARY_PATH
至此,qt-embedded安装完毕

三、编译安装qt-x11
# tar -zxvf qt-x11-opensource-src-4.5.0.tar.gz
# cd qt-x11-opensource-src-4.5.0
# ./configure
# make
# make install
qt-x11 被安装到此目录下/usr/local/Trolltech/Qt-4.5.0

编译qvfb:
# cd qt-x11-opensource……
上次编译了Qt-4.5.0,现在又忍不住编译了QtEmbedded-4.5.0,过程如下:<br><br>一、下载<br>qt-embedded-linux-opensource-src-4.5.0.tar.gz<br>qt-x11-opensource-src-4.5.0.tar.gz<br><br>二、编译安装qt-embedded<br># tar -zxvf qt-embedded-linux-opensource-src-4.5.0.tar.gz<br># cd qt-embedded-linux-opensource-src-4.5.0<br># ./configure -embedded x86 -qvfb<br># make<br># make install<br>qt-embedded 被安装在这个目录下/usr/local/Trolltech/QtEmbedded-4.5.0<br><br>设置环境变量:<br># vi ~/.bashrc<br>把下面的加上去<br>export QTEDIR=/usr/local/Trolltech/QtEmbedded-4.5.0<br>export PATH=/usr/local/Trolltech/QtEmbedded-4.5.0/bin:$PATH<br>export LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.5.0/lib:$LD_LIBRARY_PATH<br>至此,qt-embedded安装完毕<br><br>三、编译安装qt-x11<br># tar -zxvf qt-x11-opensource-src-4.5.0.tar.gz<br> # cd qt-x11-opensource-src-4.5.0<br># ./configure<br># make<br># make install<br>qt-x11 被安装到此目录下/usr/local/Trolltech/Qt-4.5.0<br><br>编译qvfb:<br># cd qt-x11-opensource……
查看全文
发表于:2009-03-14 ┆ 阅读(1740)评论(9)

Ubuntu 8.10下编译QT 4.5

到官网下载Download Qt libraries 4.5 for Linux/X11(118 Mb)

1)解压

2)运行./configure,有个许可证,填yes

3)运行make

4)运行make install

5)把路径填入PATH

PATH=/usr/local/Trolltech/Qt-4.5.0/bin:$PATH
export PATH

6)运行qtdemo

安装过程非常简单,但是时间很长,make的过程中出现了一个问题,如下:

在包含自 ../../include/QtGui/private/qt_x11_p.h:1 的文件中,
                从 kernel/qapplication.cpp:76:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:71:22: 错误: X11/Xlib.h:没有该文件或目录

你可能感兴趣的:(移植Qtopia-opensource-src-4.3.2 (copy))