【文章內(nèi)容簡(jiǎn)介】
systemlibpng ..... Use a libpng from the operating system. See * nomng ............ Do not pile in MNG I/O support. systemlibmng ..... Use libmng from the operating system. See * nojpeg ........... Do not pile in JPEG I/O support. systemjpeg ....... Use jpeglib from the operating system. See * nonassound ...... Do not pile in NAS sound support. systemnassound .. Use NAS libaudio from the operating system. see nomodule ....... Disables a module, where module can can be one of: opengl table work canvas kde ............... Builds the Qt Designer with KDE 2 support, so that KDE 2 widgets can be used directly in the Qt Designer. $KDEDIR must be set to point to a KDE 2 installation. See nog++exceptions . Disable exceptions on platforms using the GNU C++ piler by using the fnoexceptions flag. noxft ............ Disable support for AntiAliased fonts through the Xft extension library (XFree86 and newer). xft ............... Enable support for AntiAliased fonts. Xft support is autodetected, but you may use these flags to explicitly enable/disable support. platform target ... The platform you are building on (linuxg++) xplatform target .. The platform when crosspiling. See the PLATFORMS file for a list of supported operating systems and pilers. Istring ........... Add an explicit include path. Lstring ........... Add an explicit library path. Rstring ........... Add an explicit dynamic library runtime search path.嵌入式系統(tǒng)教學(xué)平臺(tái)實(shí)驗(yàn)教材 8 lstring ........... Add an explicit library.Qt/Embedded only: qconfig local ..... Use src/tools/ rather than the default (). depths list ....... Commaseparated list of supported bitperpixel depths, from: v, 4, 8, 16, 24, and 32. 39。v39。 is VGA16. accelvoodoo3 ..... Enable Voodoo3 acceleration. accelmach64 ...... Enable Mach64 acceleration. accelmatrox ...... Enable Matrox MGA acceleration. qvfb .............. Enable X11based Qt Virtual Frame Buffer. vnc ............... Enable VNC server (requires work module).選擇我們需要的配置和平臺(tái):./configure platform linuxg++ thread systemjpeg gif noxft按照下面的選擇進(jìn)行一步一步,并且會(huì)有以下打印信息:Type 39。Q39。 to view the Q Public License.Type 39。G39。 to view the GNU General Public License.Type 39。yes39。 to accept this license offer.Type 39。no39。 to decline this license offer.Do you accept the terms of the license?yesThis target is using the GNU C++ piler (linuxg++). Recent versions of this piler automatically include code for exceptions, which increase both the size of the Qt library and the amount of memory taken by your applications. You may elect to rerun ./configure with the nog++exceptions option to pile Qt without exceptions. This is pletely binary patible, and existing applications will continue to work (like KDE 2).Build type: linuxg++sharedThread support..................... yesGIF support........................ yes嵌入式系統(tǒng)教學(xué)平臺(tái)實(shí)驗(yàn)教材 9 MNG support........................ noJPEG support....................... yesOpenGL support .................... yesNAS sound support.................. noSession management................. yesXft support (AntiAliased Fonts) .. noXKB support ....................... yesCreating makefiles...Qt is now configured for building. Just run make.To reconfigure, run make clean and configure.生成 Makefile 后,就可以進(jìn)行安裝make安裝成功后,將會(huì)有以下打印信息:The Qt library is now built in ./libThe Qt examples are built in the directories in ./examplesThe Qt tutorials are built in the directories in ./tutorialNote: be sure to set $QTDIR to point to here or to wherever you move these directories.Enjoy! the Trolltech team Qt/Embedded 安裝先準(zhǔn)備好軟件包 :(這里軟件包的名字可能不同,CD 中提供的包可能是 等)解開(kāi)軟件包: tar –vxf 重命名: mv 進(jìn)入軟件包中并設(shè)置一些環(huán)境變量:export QTDIR=/2410/如果是交叉編譯,那么請(qǐng)先設(shè)置好 configs 目錄下的平臺(tái)文件:vi configs/linuxarmg++shared將其中的 arm 編譯器設(shè)置成 2410 的編譯器,保存該文件。設(shè)置編譯選項(xiàng):./configure xplatform linuxarmg++ thread如果不是交叉編譯,想在 qvfb 上運(yùn)行的話,那么則為./configure xplatform linuxx86g++ thread –qvfb根據(jù)其打印的信息設(shè)置進(jìn)行如下對(duì)話選擇:Type 39。G39。 to view the GNU General Public License.Type 39。yes39。 to accept this license offer.Type 39。no39。 to decline this license offer.嵌入式系統(tǒng)教學(xué)平臺(tái)實(shí)驗(yàn)教材 10 Do you accept the terms of the license?YesChoose a feature configuration: 1. Minimal (630 kB) 2. Small (960 kB) 3. Medium ( MB) 4. Large (3 MB) 5. Everything (5 MB) 6. Your own local configuration (src/tools/)Sizes are stripped dynamic 80386 build. Static builds are smaller.Your choice (default 5):5Choose pixeldepths to support: v. VGA16 also enables 8bpp 4. 4bpp grayscale also enables 8bpp 8. 8bpp 16. 16bpp 24. 24bpp also enables 32bpp 32. 32bppEach depth adds around 100Kb on 80386.Your choices (default 8,16):16Enable Qt Virtual Framebuffer support for development on X11 (default yes)yesBuilding on: linuxx86g++sharedBuilding for: linuxarmg++sharedThread support..................... yesGIF support........................ noMNG support........................ noJPEG support....................... yesCreating makefiles...Qt is now configured for building. Just run make.嵌入式系統(tǒng)教學(xué)平臺(tái)實(shí)驗(yàn)教材 11 To reconfigure, run make clean and configure.生成 Makefile 之后,就可以進(jìn)行編譯了:make編譯成功之后,則會(huì)有如下提示:The Qt lib