cfunboy 发表于 2011-12-20 09:44

开发环境搭建及QT移植

<font color="#0000f0"><b><font size="4"><font size="3">1.
下载源码包: </font>
</font></b></font>
<p style="margin-bottom: 0cm;"><font>a.
Qt 4.5.2 for Open Source C++ development on Linux/X11 </font></p>
<p style="margin-bottom: 0cm;">      
<font>http://get.qtsoftware.com/qt/source/qt-x11-opensource-src-4.5.2.tar.gz</font></p>
<p style="margin-left: 0.37cm; text-indent: -0.37cm; margin-bottom: 0cm;">
此源码包是用于在<font>Linux</font>系统下开发<font>Qt</font>程序用的,开发出的程序只能在<font>PC</font>机上运行。里面包含了<font>designer,qvfb</font>等工具。</p>
<p style="margin-bottom: 0cm;"><font>b.
Qt 4.5.2 for Open Source C++ development on Embedded Linux </font></p>
<p style="margin-bottom: 0cm;">
<font>http://get.qtsoftware.com/qt/source/qt-embedded-linux-opensource-src-4.5.2.tar.gz</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;">此源码包是用来进行嵌入式<font>LinuxQt</font>应用程序开发的,开发出来的程序最终目的是要在开发板上运行,但也可以利用<font>qvfb</font>这个工具在<font>PC</font>机上模拟运行。因此稍后会将此压缩文件解压成两个文件夹,分别作为开发板<font>Qt</font>环境以及<font>PC</font>机上<font>QT</font>的模拟环境。
</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;">      
</p>
<p style="margin-bottom: 0cm;"><font color="#0000f0"><b><font size="3">2.
配置</font><font size="3">ubuntu 10.10编译环境</font></b></font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>a.
</font>安装<font>g++</font>:<font>sudo
apt-get g++</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>b.
</font>安装编译<font>X11</font>用到的库:<font>sudo
apt-get libx11-dev libxext-dev</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>c.
</font>安装<font>libxtst-dev: sudo
aptitude install libxtst-dev </font>否则编译<font>qvfb</font>出错。</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>d.
</font>安装交叉编译器<font>arm-liunx-gcc</font>,并设置环境变量:下载就不说了,网上找。安装在<font>/usr/local/arm/
</font>目录下面。之后在<font>.bashrc</font>的最后一行加上<font>export
PATH=/usr/local</font></p>
<p style="margin-bottom: 0cm;"><font>/arm/4.3.2/bin:$PATH</font>,此路径作为环境变量。</p>
<p style="margin-bottom: 0cm;">   
</p>
<p style="margin-bottom: 0cm;"><font color="#0000f0"><b><font size="3">3.
编译及安装</font><font size="3">qt-x11-opensource-src-4.5.2
   </font></b></font>
</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>a.
</font>在你的下载目录中解压<font>qt-x11-opensource-src-4.5.2.tar.bz2</font></p>
<p style="margin-left: 0.74cm; margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
tar xjvf qt-x11-opensource-src-4.5.2.tar.bz2</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>b.
</font>进入解压后的目录   
</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
cd qt-x11-opensource-src-4.5.2</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>c.
</font>进行配置
</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>/qt-x11-opensource-src-4.5.2$
./configure</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>d.
</font>进行编译
</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>/qt-x11-opensource-src-4.5.2$
make</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>e.
</font>进行安装</p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>/qt-x11-opensource-src-4.5.2$
make install</font></p>
<p style="text-indent: 0.74cm; margin-bottom: 0cm;">历经漫长的编译过程,默认安装在<font>/usr/local/Trolltech/Qt-4.5.2</font>下,编译完成后源程序不要删除,还有用。</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;"><font size="3"><b><font color="#0000f0">4.
编译配置</font><font color="#0000f0">QtEmbedded-4.5.2-x86版本</font></b></font></p>
<p style="margin-bottom: 0cm;">之所以要编译<font>x86</font>版本的<font>Qt</font>,是要在<font>PC</font>机下模拟运行为开发板开发出来的程序
   
</p>
<p style="margin-bottom: 0cm;"><font>a.</font>解压</p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
tar xjvf qt-embedded-linux-opensource-src-4.5.2.tar.bz2</font></p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
mv qt-embedded-linux-opensource-src-4.5.2 qt
embedded-linux-opensource-src-4.5.2-x86          </font>
</p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
cd qt-embedded-linux-opensource-src-4.5.2-x86    </font>
</p>
<p style="margin-bottom: 0cm;"><font>b.
</font>配置编译:</p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>/qt-embedded-linux-opensource-src-4.5.2-x86$
./configure -prefix /usr/local/Trolltech/QtEmbedded-4.5.2-x86
-embedded x86 -qvfb</font></p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>/qt-embedded-linux-opensource-src-4.5.2-x86$
make</font></p>
<p style="margin-bottom: 0cm;"><font>c.
</font>安装到<font>/usr/local/Trolltech/QtEmbedded-4.5.2-x86</font>目录下:</p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>/qt-embedded-linux-opensource-src-4.5.2-x86$
make install</font></p>
<p style="margin-bottom: 0cm;"><font>d.
</font>建立脚本文件:<font>setenv_x86.sh</font>,输入以下内容:</p>
<p style="margin-bottom: 0cm;"><font>export
QTEDIR=/usr/local/Trolltech/QtEmbedded-4.5.2-x86/</font></p>
<p style="margin-bottom: 0cm;"><font>export
PATH=/usr/local/Trolltech/QtEmbedded-4.5.2-x86/bin/:$PATH</font></p>
<p style="margin-bottom: 0cm;"><font>export
LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.5.2-x86/lib/:$LD_LIBRARY_PATH
</font>
</p>
<p style="margin-bottom: 0cm;"><font>e.
</font>编译<font>x86</font>版<font>QT</font>应用程序前,先执行此脚本文件:</p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:/usr/local/Trolltech/QtEmbedded-4.5.2-x86$
source setenv_x86.sh</font></p>
<p style="margin-bottom: 0cm;"><font color="#0000f0"><b><font size="3">5.
编译</font><font size="3">qvfb</font></b></font></p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
cd /qt-x11-opensource-src-4.5.2/tools/qvfb/</font></p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>/qt-x11-opensource-src-4.5.2/tools/qvfb$
make</font></p>
<p style="margin-bottom: 0cm;">把<font>/qt-x11-opensource-src-4.5.2/bin/</font>目录下生成的<font>qvfb</font>复制<font>qvfb</font>到<font>x86</font>目录下:</p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
cp /qt-x11-opensource-src-4.5.2/bin/qvfb
/usr/local/Trolltech/QtEmbedd-4.5.2-x86/bin </font>
</p>
<p style="margin-bottom: 0cm;"><font color="#0000f0"><b><font size="3">6.   
测试</font></b></font></p>
<p style="margin-bottom: 0cm;"><font>zhangyue8624@ubuntu:~/</font>下载<font>$
cd /usr/local/Trolltech/QtEmbedded-4.5.2-x86/demos/boo</font></p>
<p style="margin-bottom: 0cm;"><font>ks</font></p>
<p style="margin-bottom: 0cm;"><font>qvfb
-width 640 -height -480 &amp; ./books -qws</font></p>
<p style="margin-bottom: 0cm;"><b><font color="#f00000" size="4">在开发扳上移植</font><font color="#f00000" size="4">QT4.5.2(带触屏支持)</font></b></p>
<p style="margin-bottom: 0cm;"><b><font color="#0000f0" size="3">一.编译安装</font><font color="#0000f0" size="3">tslib1.4</font></b></p>
<p style="margin-bottom: 0cm;"><font>A</font>、安装编译过程需用到的程序</p>
<p style="margin-bottom: 0cm;">      
<font>root@hrixin-desktop:/home/hrixin#
apt-get install autoconf</font></p>
<p style="margin-bottom: 0cm;">      
<font>root@hrixin-desktop:/home/hrixin#
apt-get install automake</font></p>
<p style="margin-bottom: 0cm;">      
<font>root@hrixin-desktop:/home/hrixin#
apt-get install libtool</font></p>
<p style="margin-bottom: 0cm;"><font>B</font>、配置编译</p>
<p style="margin-bottom: 0cm;">      <font>root@hrixin-desktop:/work/qt#
tar xzvf tslib-1.4.tar.gz</font></p>
<p style="margin-bottom: 0cm;">      <font>root@hrixin-desktop:/work/qt#
cd tslib</font></p>
<p style="margin-bottom: 0cm;">      
<font>root@hrixin-desktop:/work/qt/tslib#
./autogen.sh</font></p>
<p style="margin-left: 0.74cm; text-indent: 0.74cm; margin-bottom: 0cm;">
<font>root@hrixin-desktop:/work/qt/tslib#
echo "ac_cv_func_malloc_0_nonnull=yes" &gt;arm-linux.cache
      </font>
</p>
<p style="margin-left: 0.74cm; text-indent: 0.74cm; margin-bottom: 0cm;">
<font>root@hrixin-desktop:/work/qt/tslib#
./configure --host=arm-linux --prefix=/usr/local/tslib/
--cache-file=arm-linux.cache --enable-inputai=no
ac_cv_func_malloc_0_nonnull=yes</font></p>
<p style="margin-bottom: 0cm;">      
<font>root@hrixin-desktop:/work/qt/tslib#
make</font></p>
<p style="margin-bottom: 0cm;"><font>C</font>、安装</p>
<p style="margin-bottom: 0cm;">      
<font>root@hrixin-desktop:/work/qt/tslib#make
install</font></p>
<p style="margin-bottom: 0cm;">在<font>/usr/local/tslib/</font>文件夹下有<font>4</font>个文件夹,这些就是我们需要的东西了。修改<font>/usr/local/tslib//etc/ts.conf</font></p>
<p style="margin-bottom: 0cm;">    在前面添加 <font>module_raw
input</font>,注意不要多空格</p>
<p style="margin-bottom: 0cm;">    保存</p>
<p style="margin-bottom: 0cm;">注意:触摸屏的前提是你的触摸屏驱动已经写好,并加载进了内核<font>.</font></p>
<p style="margin-bottom: 0cm;">   你可以测试有没有加载触摸屏驱动,<font>cat
/dev/input/event0(</font>这只是我的试验箱上的触摸屏<font>)
,</font>点击触摸屏,看终端有无显示,若有则表明正确。</p>
<p style="margin-bottom: 0cm;"><font color="#0000f0" size="3"><b>二.安装<font>qt-sdk</font></b></font></p>
<p style="margin-bottom: 0cm;">在<font>PC</font>的<font>linux</font>系统中开发<font>qt</font>程序,完全可以下载完整的<font>SDK</font>,包含<font>QT</font>库,<font>Qt
Creator</font>和<font>qt</font>的其他开发工具。下载后直接安装即可。</p>
<p style="margin-bottom: 0cm;"><font color="#0000f0" size="3"><b>三.编译安装QtEmbedded-4.5.2-arm版本</b></font></p>
<p style="margin-bottom: 0cm;"><font>A</font>、解压</p>
<p style="margin-bottom: 0cm;">    <font>root@hrixin-desktop:/work/qte#
tar xjvf qt-embedded-linux-opensource-src-4.5.2.tar.bz2</font></p>
<p style="margin-bottom: 0cm;">    <font>root@hrixin-desktop:/work/qte#
mv qt-embedded-linux-opensource-src-4.5.2
qt-embedded-linux-opensource-src-4.5.2-arm</font></p>
<p style="margin-bottom: 0cm;">    <font>root@hrixin-desktop:/work/qte#
cd qt-embedded-linux-opensource-src-4.5.2-arm</font></p>
<p style="margin-bottom: 0cm;"><font>B</font>、配置编译:(注意:遇到回车敲回车不要一下子全部粘贴完)</p>
<p style="margin-bottom: 0cm;">    <font>./configure
-prefix /usr/local/Trolltech/QtEmbedded-4.5.2-arm -embedded arm \</font></p>
<p style="margin-bottom: 0cm;">    <font>-release
-shared -fast -no-largefile -qt-sql-sqlite -no-qt3support
-no-xmlpatterns -no-mmx -no-3dnow -no-sse -no-sse2 -no-svg -no-webkit
-qt-zlib -qt-gif \</font></p>
<p style="margin-bottom: 0cm;">    <font>-qt-libtiff
-qt-libpng -qt-libmng -qt-libjpeg -make libs -nomake tools -nomake
examples -nomake docs -nomake demo -no-nis -no-cups -no-iconv
-no-dbus \</font></p>
<p style="margin-bottom: 0cm;">    <font>-no-openssl
-xplatform qws/linux-arm-g++ -little-endian -qt-freetype -depths
16,18 -qt-gfx-linuxfb -no-gfx-transformed -no-gfx-multiscreen \</font></p>
<p style="margin-bottom: 0cm;">    <font>-no-gfx-vnc
-no-gfx-qvfb -qt-kbd-usb -no-glib -qt-mouse-tslib
-I/usr/local/tslib/include -L/usr/local/tslib/lib</font></p>
<p style="margin-bottom: 0cm;"> <font>###
</font>注意这个目录要跟你的<font>tslib</font>安装目录相同!!!</p>
<p style="margin-bottom: 0cm;">
<font>root@hrixin-desktop:/work/qte/qt-embedded-linux-opensource-src-4.5.2-arm#
make</font></p>
<p style="margin-bottom: 0cm;"><font>C</font>、安装到<font>/usr/local/Trolltech/QtEmbedded-4.5.2-arm</font>目录下:</p>
<p style="margin-bottom: 0cm;">
<font>root@hrixin-desktop:/work/qte/qt-embedded-linux-opensource-src-4.5.2-arm#
make install</font></p>
<p style="margin-bottom: 0cm;"><b><font color="#0000f0" size="3">四.移植到开发板</font></b></p>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm; widows: 2; orphans: 2;" align="LEFT">
<font color="#f00000" size="3"><font>1.</font></font><font color="#f00000" size="3">拷贝相关文件到</font><font color="#f00000" size="3"><font>ARM</font></font><font size="3"><font color="#f00000">根文件系统</font>(只要环境变量(路径)配置正确,放在哪个目录都行)</font></p>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm; widows: 2; orphans: 2;" align="LEFT">
<font size="3">拷贝</font><font><font><font size="3">/usr/local/…/tslib</font></font></font><font size="3">整个目录到</font><font><font><font size="3">arm</font></font></font><font size="3">板根文件系统</font><font><font><font size="3">root_nfs/</font></font></font><font size="3">下;</font></p>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm; widows: 2; orphans: 2;" align="LEFT">
<font size="3">拷贝</font><font><font><font size="3">/usr/local/…/lib/</font></font></font><font size="3">下所有库文件到</font><font><font><font size="3">root_nfs/opt/qt/lib</font></font></font><font size="3">目录下,你可能不需要全部的库文件,(可能最重要的库就是</font><font><font><font size="3">libQtGui.so,libQtCore.so,libQtNetwork.so
</font></font></font><font size="3">字体文件夹以及指向他们的快捷方式</font><font><font><font size="3">,cp
-dpR</font></font></font><font size="3">)可根据需要选择;</font></p>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm; widows: 2; orphans: 2;" align="LEFT">
<font color="#f00000"><font><font size="3">2.</font></font></font><font color="#f00000" size="3">设置环境变量和配置文件</font></p>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm; widows: 2; orphans: 2;" align="LEFT">
<font size="3">首先设置</font><font><font size="3">tslib</font></font><font size="3">的配置文件
&nbsp;</font><font><font size="3">gedit
root_nfs/tslib/build/etc/ts.conf</font></font></p>
<table width="178" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="11">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">1</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="157">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">module_raw
                        input</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="4">
                        <p><br>
                        </p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="11">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">2</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="163">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">module
                        pthres pmin=1</font></font></p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="218" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="11">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">3</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="198">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">module
                        variance delta=30</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="3">
                        <p><br>
                        </p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="11">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">4</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="203">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">module
                        dejitter delta=100</font></font></p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="122" cellpadding="1" cellspacing="0">
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="11">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">5</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="107">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">module
                        linear</font></font></p>
                </td>
        </tr>
</tbody></table>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm; widows: 2; orphans: 2;" align="LEFT">
<font size="3">然后设置</font><font><font size="3">qt</font></font><font size="3">及</font><font><font size="3">tslib</font></font><font size="3">的环境变量:
</font><font><font size="3">gedit
root_nfs/etc/profile</font></font></p>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm; widows: 2; orphans: 2;" align="LEFT">
<font size="3">在最后加入:</font><font><font size="3">(</font></font><font size="3">重启开发板,移植完成!注意,在开发板上运行</font><font><font size="3">qt</font></font><font size="3">程序要加</font><font><font size="3">-qws
</font></font><font size="3">选项,从而让程序以</font><font><font size="3">Server</font></font><font size="3">模式运行。</font><font><font size="3">)</font></font></p>
<table width="234" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">01</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="205">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        QTDIR=/opt/qt</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="4">
                        <p><br>
                        </p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">02</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="211">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        T_ROOT=/tslib/build</font></font></p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="386" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">03</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="356">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        PATH=$T_ROOT/bin:$PATH</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="5">
                        <p><br>
                        </p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">04</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="363">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        LD_LIBRARY_PATH=$T_ROOT/lib:$QTDIR/lib</font></font></p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="274" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">05</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="251">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        TSLIB_CONSOLEDEVICE=none</font></font></p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">06</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="246">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        TSLIB_FBDEVICE=/dev/fb0</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="3">
                        <p><br>
                        </p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="338" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">07</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="315">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        TSLIB_TSDEVICE=/dev/input/event0</font></font></p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">08</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="310">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        TSLIB_PLUGINDIR=$T_ROOT/lib/ts</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="3">
                        <p><br>
                        </p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="354" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">09</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="331">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        TSLIB_CONFFILE=$T_ROOT/etc/ts.conf</font></font></p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">10</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="326">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        TSLIB_CALIBFILE=/etc/pointercal</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="3">
                        <p><br>
                        </p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="394" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">11</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="365">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        QWS_KEYBOARD=USB:/dev/input/event1</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="4">
                        <p><br>
                        </p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">12</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="371">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        QWS_MOUSE_PROTO=Tslib:/dev/input/event0</font></font></p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm; widows: 2; orphans: 2;" align="LEFT"><br>
</p>
<table width="418" cellpadding="1" cellspacing="0">
       
       
       
        <tbody><tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">13</font></font></p>
                </td>
                <td colspan="2" style="border: medium none; padding: 0cm;" width="395">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        QWS_DISPLAY=LinuxFb:mmWidth45:mmHeight60:0</font></font></p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">14</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="387">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">export
                        QWS_SIZE=240x320</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="6">
                        <p><br>
                        </p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font size="3">15</font></font></p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="387">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><font><font><font size="3">Export
                        </font></font></font><font size="3">字体配置参数 </font>
                        </p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="6">
                        <p><br>
                        </p>
                </td>
        </tr>
        <tr>
                <td style="border: medium none; padding: 0cm;" width="19">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><br>
                        </p>
                </td>
                <td style="border: medium none; padding: 0cm;" width="387">
                        <p style="widows: 2; orphans: 2;" align="LEFT"><br>
                        </p>
                </td>
                <td style="border: medium none; padding: 0cm;" valign="TOP" width="6">
                        <p><br>
                        </p>
                </td>
        </tr>
</tbody></table>
<p style="margin-bottom: 0cm;"><font color="#0000f0" size="3">###启动程序后发现触摸屏不准,这是需要执行</font><font color="#0000f0" size="3">tslib/bin目录下的校准程序校准触屏,默认是在</font><font color="#0000f0" size="3">/etc目录下生成一个校准数据文件。</font></p>

zgj224 发表于 2014-02-14 19:43

!!!!!!!!!!!!!!!!!!!!!

pitonas 发表于 2014-03-05 13:36

QT移植
开启了另一片天地
页: [1]
查看完整版本: 开发环境搭建及QT移植