qt embedded配置選項

個人qt-everywhere-opensource-src-4.6.0.tar.gz是在主文件夾中.就是 你javascript

$cd ~   而後那個位置,接下來解壓這個包包.css

~$tar zxvf qt-everywhere-opensource-src-4.6.0.tar.gzjava

~$cd qt-everywhere-opensource-src-4.6.0mysql

接下來就應該configure 了.如今開始配置參數了linux

./configure -prefix /usr/local/qte-arm -debug-and-release -qt3support -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -make libs -nomake examples -nomake demos -nomake docs -no-cups -iconv -xplatform qws/linux-arm-g++ -embedded arm -little-endian -qt-freetype -depths 8,16,24,32 -qt-gfx-linuxfb -no-gfx-transformed -no-gfx-qvfb -no-gfx-vnc -no-gfx-multiscreen -no-dbus -qt-sql-sqlite -qt-kbd-qvfb -qt-kbd-tty -qt-mouse-pc -no-glib -plugin-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib -D__ARM_ARCH_5TEJ__web

這個參數要所有輸入進去複製+粘貼,你懂的哈.sql

可是你要做一下修改的啊,由於咱們的己其實不一樣的阿.後端

先給你些解釋:(configure後面參數的意義)app

./configure
-prefix /usr/local/qte-arm    (強制安裝在此路徑)
-debug-and-release             編譯和連接兩個版本的Qt
-qt3support                    支持QT3
-qt-zlib                       捆綁使用的Qt的zlib。
-qt-libtiff                    使用Qt的捆綁的libtiff。
-qt-libpng                     使用Qt的捆綁的的libpng。
-qt-libmng                     使用Qt的捆綁的libmng。
-qt-libjpeg                    使用Qt的捆綁的的libjpeg。
-make libs                     新增 libs
-nomake examples               排除 。。
-nomake demos                  排除。。
-nomake docs                   排除。。
-no-cups                       不要編譯CUPS的支
-iconv                         編譯iconv擁有支持(3)
-xplatform qws/linux-arm-g++  
-embedded arm                       
-little-endian
-qt-freetype
-depths 8,16,24,32
-qt-gfx-linuxfb
-no-gfx-transformed
-no-gfx-qvfb
-no-gfx-vnc
-no-gfx-multiscreen
-no-dbus
-qt-sql-sqlite
-qt-kbd-qvfb
-qt-kbd-tty
-qt-mouse-pc
-no-glib
-plugin-mouse-tslib -I/usr/local/tslib/ -L/usr/local/tslib/lib -D__ARM_ARCH_5TEJ__
                       (包含路徑)                                 (庫路徑)                     (定義的預處理器)ide

注意拉:

-plugin-mouse-tslib 是說你須要用到tslib這個插件.(我理解的好像不太準確吧,呵呵不要笑話我水平有限)

-I/usr/local/tslib/lib 這個是你tslib.h這個頭文件的包含路徑

-L/usr/local/tslib/lib 這個是你的庫的路徑

-D__ARM_ARCH_5TEJ__   這個是定義的預處理器,唉百度找出來的,不太理解那幾個字木的含義哈.

(若是你的configure一直出錯誤那麼就看最下面那一大部分東西,而後找有用的本身慢慢理解哈.)

help: unknown argument  幫助:未知參數

Usage:  configure [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir <dir>]
 用法:     [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-datadir <dir>]
        [-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir <dir>]
        [-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
        [-debug-and-release] [-developer-build] [-shared] [-static] [-no-fast] [-fast]    

        [-no-largefile]
        [-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
        [-accessibility] [-no-stl] [-stl] [-no-sql-<driver>] [-sql-<driver>]
        [-plugin-sql-<driver>] [-system-sqlite] [-no-qt3support] [-qt3support]
        [-platform] [-D <string>] [-I <string>] [-L <string>] [-help]
        [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff]
        [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng]
        [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>]
        [-nomake <part>] [-R <string>]  [-l <string>] [-no-rpath]  [-rpath] [-continue]
        [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv]
        [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked]
        [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
        [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa]
        [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns]
        [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend]

        [-phonon-backend]
        [-no-audio-backend] [-audio-backend] [-no-openssl] [-openssl] [-openssl-linked]
        [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-no-javascript-jit]  

        [-javascript-jit]
        [-no-script] [-script] [-no-scripttools] [-scripttools] [-no-declarative] [-declarative]

        [additional platform specific options (see below)] #額外的平臺特定的選項(見下文)


Installation options:安裝選項:

 These are optional, but you may specify install directories.
    這些都是可選的,但您能夠指定安裝目錄。
    -prefix <dir> ...... This will install everything relative to <dir>  

                               這一切都將安裝相對於<dir>
                         (default /usr/local/Trolltech/Qt-4.6.2)

  * -prefix-install .... Force a sandboxed "local" installation of        

                       強制a sandboxed "local"安裝QT。
                         Qt. This will install into                                     

                                  這將安裝到
                         /usr/local/Trolltech/Qt-4.6.2, if this option is     

                                   若是此選項
                         disabled then some platforms will attempt a    

                                而後禁用某些平臺將嘗試
                         "system" install by placing default values to  

                                 「系統」經過將安裝默認值
                         be placed in a system location other than        

                               被放置在一個系統之外的其餘位置
                          PREFIX.                                        

                             字首。
               
               
               
           

 You may use these to separate different parts of the install:                       

  你可使用這些分開的安裝不一樣的部分:

    -bindir <dir> ......... Executables will be installed to <dir>                    

可執行文件將被安裝到<目錄>
                            (default PREFIX/bin)                                    

                             (  默認PREFIX/bin)
    -libdir <dir> ......... Libraries will be installed to <dir>                  

      Libraries(庫)將被安裝到<目錄>
                            (default PREFIX/lib)                                

                                默認PREFIX/lib
    -docdir <dir> ......... Documentation will be installed to <dir>          

            文件(使用說明)將被安裝到<目錄>   
                            (default PREFIX/doc)
    -headerdir <dir> ...... Headers will be installed to <dir>                     

                          標題。頭文件?
                            (default PREFIX/include)
    -plugindir <dir> ...... Plugins will be installed to <dir>                 

                                   插件
                            (default PREFIX/plugins)
    -datadir <dir> ........ Data used by Qt programs will be installed to <dir>       

                            QT程序所使用的數據
                            (default PREFIX)
    -translationdir <dir> . Translations of Qt programs will be installed to <dir>  

                           翻譯QT的程序
                            (default PREFIX/translations)
    -sysconfdir <dir> ..... Settings used by Qt programs will be looked for in <dir>

                            QT程序的使用設置
                            (default PREFIX/etc/settings)
    -examplesdir <dir> .... Examples will be installed to <dir>                      

                                     範例
                            (default PREFIX/examples)
    -demosdir <dir> ....... Demos will be installed to <dir>                        

                                     演示
                            (default PREFIX/demos)

 You may use these options to turn on strict plugin loading.                     

      你可使用這些選項打開嚴格裝入插件。
 
    -buildkey <key> .... Build the Qt library and plugins using the specified       

                          - buildkey的<key> ....生成Qt庫和插件使用指定
                         <key>.  When the library loads plugins, it will only        

                                的<key>。  當庫加載插件,它只會
                         load those that have a matching key.                         

                                  負載那些具備匹配的關鍵。

Configure options:                                                                    
配置選項:
 
 The defaults (*) are usually acceptable. A plus (+) denotes a default value
 that needs to be evaluated. If the evaluation succeeds, the feature is
 included. Here is a short explanation of each option:
  默認值(*)一般都是能夠驗收的。一個加號(+)表示默認值
  須要進行評估。若是評估成功,功能是
  包括在內。下面是每一個選項的簡短說明:

 *  -release ........... Compile and link Qt with debugging turned off.             

       關閉調試QT的編譯和鏈接
    -debug ............. Compile and link Qt with debugging turned on.             

       打開調試QT的編譯和鏈接
    -debug-and-release . Compile and link two versions of Qt, with and without         

      編譯和連接兩個版本的Qt
                         debugging turned on (Mac only).                              

                          而且不進行調試(僅在MAC 系統中)。

    -developer-build.... Compile and link Qt with Qt developer options (including auto-tests exporting)
                      編譯和連接與Qt的開發選項(包括自動測試出口的Qt)

    -opensource......... Compile and link the Open-Source Edition of Qt.       

                            編譯和連接的Qt開源版
    -commercial......... Compile and link the Commercial Edition of Qt.              

                           編譯和連接的Qt商業版。

 *  -shared ............ Create and use shared Qt libraries.                           

                            建立和使用共享Qt庫。
    -static ............ Create and use static Qt libraries.                          

                          建立和使用靜態的Qt庫。

 *  -no-fast ........... Configure Qt normally by generating Makefiles for all         

                           經過生成全部的Makefile
                         project files.                                           

                    項目文件正常配置Qt。
                                                           
    -fast .............. Configure Qt quickly by generating Makefiles only for     

              經過配置Qt的快速生成Makefile文件只以
                         library and subdirectory targets.  All other Makefiles     

                   ibrary and subdirectory(子目錄)爲目標,全部其它的Makefile
                         are created as wrappers, which will in turn run qmake.      

                              封裝建立,浙江反過來運行qmake。

    -no-largefile ...... Disables large file support.                

                     禁用大文件支持
 +  -largefile ......... Enables Qt to access files larger than 4 GB.             

              使Qt來訪問大於4 GB的檔案

    -no-exceptions ..... Disable exceptions on compilers that support it.    

               在編譯器,支持禁用例外。

    (例外:沒有受到防火牆,程序,服務,或者端口的阻擋的, 自由進出的數據包。)
 *  -exceptions ........ Enable exceptions on compilers that support it.       

          在編譯器,支持啓用例外。
                
    -no-accessibility .. Do not compile Accessibility support.                

            不編輯可接入性支持  
 *  -accessibility ..... Compile Accessibility support.                           

           編輯可接入性支持  

    -no-stl ............ Do not compile STL support.                                

     不要編譯STL的支持。
 *  -stl ............... Compile STL support.                                       

      要編譯STL的支持。
  (STL如今是C++的一部分,所以不用額外安裝什麼。它被內建在你的編譯器以內。

在C++標準中,STL被組織爲下面的13個頭文件:<algorithm>、<deque>、
                                                                                          <functional>、<iterator>、<vector>、<list>、<map>、<memory>、
                                                                                           <numeric>、<queue>、<set>、<stack> 和<utility>。)

    -no-sql-<driver> ... Disable SQL <driver> entirely.                     

          徹底禁用SQL 驅動
    -qt-sql-<driver> ... Enable a SQL <driver> in the QtSql library, by default           

                                 在QtSql庫啓用一個SQL <驅動,默認狀況下
                         none are turned on.      

                          沒有一個是開啓
    -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to                    

            啓用SQL <驅動做爲一個插件掛鉤
                         at run time.                                              

                          在運行時。

                         Possible values for <driver>:                                       

                               爲<驅動>可能值:
                         [  db2 ibase mysql oci odbc psql sqlite sqlite2 sqlite_symbian tds ]

    -system-sqlite ..... Use sqlite from the operating system. 

                         使用sqlite的從操做系統

    -no-qt3support ..... Disables the Qt 3 support functionality.         

                           禁用的Qt 3支持的功能
 *  -qt3support ........ Enables the Qt 3 support functionality.      

                          啓用了Qt 3支持的功能。

   -no-xmlpatterns .... Do not build the QtXmlPatterns module.

                          不要創建QtXmlPatterns模塊。
 +  -xmlpatterns ....... Build the QtXmlPatterns module.          

                          構建QtXmlPatterns模塊。
                         QtXmlPatterns is built if a decent C++ compiler                                            

                         QtXmlPatterns若是創建一個像樣的C + +編譯器
                         is used and exceptions are enabled.                                  

                                例外的是使用和啓用

    -no-multimedia ..... Do not build the QtMultimedia module.   

                                   不要創建QtMultimedia模塊
 +  -multimedia ........ Build the QtMultimedia module.                                       

                                 構建QtMultimedia模塊。

    -no-audio-backend .. Do not build the platform audio backend into QtMultimedia.           

                                      不要創建平臺的音頻後端到QtMultimedia。
 +  -audio-backend ..... Build the platform audio backend into QtMultimedia if available.     

                                      創建在平臺的音頻後端到QtMultimedia若是可用。

    -no-phonon ......... Do not build the Phonon module.             

                                        不要創建聲子模塊。
 +  -phonon ............ Build the Phonon module.                  

                                        創建聲子模塊。
                         Phonon is built if a decent C++ compiler is used.                    

                         若是聲子是創建一個像樣的C + +編譯器使用。
    -no-phonon-backend.. Do not build the platform phonon plugin.                             

                            不要創建在平臺聲子插件。
 +  -phonon-backend..... Build the platform phonon plugin.                                    

                               創建在平臺聲子插件。

    -no-svg ............ Do not build the SVG module.                                         

                               不要創建SVG的模塊。
 +  -svg ............... Build the SVG module.                                                

                                  創建SVG的模塊
                              (SVG:靜止無功發生器)
    -no-webkit ......... Do not build the WebKit module.                                      

                                        不要創建WebKit的模塊
 +  -webkit ............ Build the WebKit module.                                   

                                     創建WebKit的模塊
                         WebKit is built if a decent C++ compiler is used.                   

                          WebKit是若是創建一個像樣的C + +編譯器使用。

    -no-javascript-jit . Do not build the JavaScriptCore JIT compiler.                        

                          不要創建JavaScriptCore的JIT編譯器。
 +  -javascript-jit .... Build the JavaScriptCore JIT compiler.                               

                           創建JavaScriptCore的JIT編譯器。

    -no-script ......... Do not build the QtScript module.                                    

                                不要建設做爲QtScript模塊
 +  -script ............ Build the QtScript module.                                           

                                  建設做爲QtScript模塊
                                     (QtScript:QT腳本)
    -no-scripttools .... Do not build the QtScriptTools module.                               

                                 不創建QT腳本工具模塊
 +  -scripttools ....... Build the QtScriptTools module.                                      

                                   創建QT腳本工具模塊

 +  -no-declarative .....Do not build the declarative module.                               

                                      不要創建的聲明模塊
    -declarative ....... Build the declarative module.                                        

                                        創建的聲明模塊

    -platform target ... The operating system and compiler you are building                   

                    操做系統和編譯器你是創建在(與linux - g + +的)。
                         on (linux-g++).

                         See the README file for a list of supported                          

                         查看支持的操做系統和編譯器列表中的自述文件。
                         operating systems and compilers.
    -graphicssystem <sys> Sets an alternate graphics system. Available options are:           

                         設置一個備用系統的圖形。可用的選項有
                           raster - Software rasterizer                                       

                                        軟件光柵
                           opengl - Rendering via OpenGL, Experimental!                      

                                 經過OpenGL渲染,實驗!                       

    -no-mmx ............ Do not compile with use of MMX instructions.                         

                                 沒有編制與MMX指令使用。
    -no-3dnow .......... Do not compile with use of 3DNOW instructions.                       

                                  沒有編制與3DNOW指令使用。
    -no-sse ............ Do not compile with use of SSE instructions.                         

                                    沒有編制與SSE指令使用。
    -no-sse2 ........... Do not compile with use of SSE2 instructions.                        

                                   沒有編制與SSE2指令使用。

    -qtnamespace <name>  Wraps all Qt library code in 'namespace <name> {...}'.               

                        隱藏全部的Qt'命名空間<名稱{...}'.庫代碼
    -qtlibinfix <infix>  Renames all libQt*.so to libQt*<infix>.so.                           

                  重命名全部的libqt *.所謂的libqt * <infix>。如此。

    -D <string> ........ Add an explicit define to the preprocessor.                          

                     添加一個明確的定義的預處理器。
    -I <string> ........ Add an explicit include path.                                        

                     添加一個明確的包含路徑。
    -L <string> ........ Add an explicit library path.                                        

                     添加一個明確的庫路徑
 
    -help, -h .......... Display this information.                                            

                             顯示此信息

Third Party Libraries:                                                                        

       第三方庫:

    -qt-zlib ........... Use the zlib bundled with Qt.                                        

       捆綁使用的Qt的zlib。
 +  -system-zlib ....... Use zlib from the operating system.                                  

        使用zlib的從操做系統
                         See http://www.gzip.org/zlib         

                         詳情http://www.gzip.org/zlib

    -no-gif ............ Do not compile the plugin for GIF reading support.                   

         不要編譯的GIF閱讀支持插件
 *  -qt-gif ............ Compile the plugin for GIF reading support.                          

         編譯的GIF閱讀支持插件。
                         See also src/plugins/p_w_picpathformats/gif/qgifhandler.h

    -no-libtiff ........ Do not compile the plugin for TIFF support.                          

          不要編譯爲TIFF的支持插件
    -qt-libtiff ........ Use the libtiff bundled with Qt.                                     

           使用Qt的捆綁的libtiff。
 +  -system-libtiff .... Use libtiff from the operating system.                               

           使用的libtiff從操做系統。
                         See http://www.libtiff.org

    -no-libpng ......... Do not compile in PNG support.                                       

               不要編譯PNG支持。
    -qt-libpng ......... Use the libpng bundled with Qt.                                      

            使用Qt的捆綁的的libpng。
 +  -system-libpng ..... Use libpng from the operating system.                                

            使用的libpng從操做系統。
                         See http://www.libpng.org/pub/png

    -no-libmng ......... Do not compile the plugin for MNG support.                           

           不編譯MNG支持插件。
    -qt-libmng ......... Use the libmng bundled with Qt.                                     

            使用Qt的捆綁的libmng。
 +  -system-libmng ..... Use libmng from the operating system.                                

          使用libmng從操做系統。
                         See http://www.libmng.com

    -no-libjpeg ........ Do not compile the plugin for JPEG support.                          

           不要編譯爲JPEG支持插件
    -qt-libjpeg ........ Use the libjpeg bundled with Qt.                                     

            使用Qt的捆綁的的libjpeg。   
 +  -system-libjpeg .... Use libjpeg from the operating system.                     

            使用的libjpeg從操做系統。
                         See http://www.ijg.org

    -no-openssl ........ Do not compile support for OpenSSL.                             

              沒有編制OpenSSL的支持。
 +  -openssl ........... Enable run-time OpenSSL support.                                 

              啓用運行時OpenSSL的支援。
    -openssl-linked .... Enabled linked OpenSSL support.                              

              啓用與OpenSSL的支持

    -ptmalloc .......... Override the system memory allocator with ptmalloc.           

               重寫與ptmalloc系統內存分配器。
                         (Experimental.)                                                        

                              (實驗)

Additional options:                                                                   

  其餘選項:

    -make <part> ....... Add part to the list of parts to be built at make time.           

    新增部分的零件清單,建在騰出時間
                         (libs tools examples demos docs translations)                        

 (例如誘導探測工具,演示文檔翻譯)
    -nomake <part> ..... Exclude part from the list of parts to be built.                     

   排除從零件清單的一部分,纔是上策。

    -R <string> ........ Add an explicit runtime library path to the Qt                      

    添加一個明確的運行時庫路徑的Qt庫
                         libraries.
    -l <string> ........ Add an explicit library.                                       

       添加一個明確的庫

    -no-rpath .......... Do not use the library install path as a runtime                    

  不要使用庫安裝爲一個運行時庫路徑的路徑。
                         library path.
 +  -rpath ............. Link Qt libraries and executables using the library
                         install path as a runtime library path. Equivalent
                         to -R install_libpath
                          Qt庫和可執行文件連接使用庫安裝路徑爲運行時庫的路徑。

                          當量對- R的install_libpath

    -continue .......... Continue as far as possible if an error occurs.                     

                             若是發生錯誤就繼續

    -verbose, -v ....... Print verbose information about each step of the                     

            打印有關的配置過程當中的每一個步驟詳細的信息。
                         configure process.

    -silent ............ Reduce the build output so that warnings and errors                  

                  減小產量,以便創建警告和錯誤能夠看到更容易
                         can be seen more easily.

 *  -no-optimized-qmake ... Do not build qmake optimized.                                     

                          不建qmake的優化。
    -optimized-qmake ...... Build qmake optimized.                                            

                           創建qmake的優化

    -no-nis ............ Do not compile NIS support.                                          

                            沒有編制NIS支持。
 *  -nis ............... Compile NIS support.                                    

                             編制NIS支持。

    -no-cups ........... Do not compile CUPS support.                                         

                        不要編譯CUPS的支持
 *  -cups .............. Compile CUPS support.                                                

                             編譯CUPS的支持
                         Requires cups/cups.h and libcups.so.2.                               

                            需求 cups/cups.h and libcups.so.2.

    -no-iconv .......... Do not compile support for iconv(3).                            

                                 不要編譯iconv擁有支持(3)。
 *  -iconv ............. Compile support for iconv(3).                                        

                                    編譯iconv擁有支持(3)。

    -no-pch ............ Do not use precompiled header support.                               

                         不使用預編譯頭的支持。
 *  -pch ............... Use precompiled header support.                                      

                              使用預編譯頭的支持。

    -no-dbus ........... Do not compile the QtDBus module.                                 

                              不要編譯QtDBus模塊。
 +  -dbus .............. Compile the QtDBus module and dynamically load libdbus-1.            

                     編譯QtDBus模塊和動態加載的libdbus - 1。
    -dbus-linked ....... Compile the QtDBus module and link to libdbus-1.                  

                     編譯並連接到QtDBus模塊的libdbus - 1。

    -reduce-relocations ..... Reduce relocations in the libraries through extra              
                              linker optimizations (Qt/X11 and Qt for Embedded Linux only;
                              experimental; needs GNU ld >= 2.18).
                                  減小庫重定向,經過減小額外 鏈接器優化

                         (Qt/X11和Qt的嵌入式Linux只; 實驗性;須要的GNU ld的> = 2.18)。

    -no-separate-debug-info . Do not store debug information in a separate file.              

                     不要調試信息存儲在一個單獨的文件。
 *  -separate-debug-info .... Strip debug information into a separate .debug file.             

                         調試到一個單獨的信息。調試文件。

相關文章
相關標籤/搜索