Install QT for VS2008 on WinXP

Install QT for VS2008 on WinXP

  1. 直接下載已編譯好的binary檔 QT binaries for windows,若要安裝其它較高版本 for vs2008,可到qt-msvc-installer下載。
  2. 解壓縮後,在環境變數User Variables加入 QTDIR=C:\Qt-4.4.3 及Path=C:\Qt-4.4.3\bin;.........
  3. 安裝 QT for vs2008 addin
  4. 在C:\Qt-4.4.3目錄下製作兩個文字檔「configure.cache」、「.qmake.cache」,這兩個檔是build source code產生的

    configure.cache 內容

    -platform
    win32-msvc2008
    -debug-and-release
    -platform win32-msvc2008 -debug-and-release

    .qmake.cache 內容

    QMAKE_QT_VERSION_OVERRIDE = 4
    OBJECTS_DIR     = tmp\obj\debug_shared
    MOC_DIR         = tmp\moc\debug_shared
    RCC_DIR         = tmp\rcc\debug_shared
    sql-plugins    += sqlite
    styles         += windows plastique cleanlooks motif cde
    imageformat-plugins += gif tiff jpeg
    CONFIG         += dist-config large-config medium-config minimal-config small-config full-config build_all debug incremental create_prl link_prl depend_includepath QTDIR_build
    QT_BUILD_PARTS  = libs tools examples demos docs translations
    QMAKESPEC       = C:\Qt-4.4.3\mkspecs\win32-msvc2008
    ARCH            = windows
    QT_BUILD_TREE   = C:\Qt-4.4.3
    QT_SOURCE_TREE  = C:\Qt-4.4.3
    QMAKE_MOC       = $$QT_BUILD_TREE\bin\moc.exe
    QMAKE_UIC       = $$QT_BUILD_TREE\bin\uic.exe
    QMAKE_UIC3      = $$QT_BUILD_TREE\bin\uic3.exe
    QMAKE_RCC       = $$QT_BUILD_TREE\bin\rcc.exe
    QMAKE_DUMPCPP   = $$QT_BUILD_TREE\bin\dumpcpp.exe
    QMAKE_INCDIR_QT = $$QT_BUILD_TREE\include
    QMAKE_LIBDIR_QT = $$QT_BUILD_TREE\lib

Dotblogs 的標籤: