CompileTalkStyle

From OO Lab
Revision as of 11:56, 10 May 2012 by RyanYang (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Compile TalkStyle

Download source code from Git Server

請參閱 How to install Git

  • 確定(msysgit 或是 cygwin 的)家目錄內的 .ssh 資料夾有 SSH private key

請參閱 Set Up SSH Keys

  • 取出檔案庫
git clone gitolite@oolab101.csie.ncu.edu.tw:TalkStyle.git
  • 如果你/妳並不需要 push 權限, 使用以下的網址
git clone git://oolab-54.csie.ncu.edu.tw/git/TalkStyle.git

Trouble Shot

  • 如果 clone 失敗,請找 Git server manager 確定 server 上有你/妳的 SSH public key
  • 如果出現和中文有關的錯誤訊息,請考慮使用 Cygwin

Setup the Visual Studio 2010

因為需要安裝 Add-in,必須使用 Professional 以上的版本

install Qt library

目前 TalkStyle 使用 Qt 4.7.x,請確定安裝的是 4.7 版本。 雖然有 Qt 4.8 有預編版本,但在全面升級前不建議使用。

  • 至 Qt 官方網站下載原始碼
  • 解壓縮
  • 將下列內容存為 build.bat 到上述解壓縮後的資料夾,編譯完成後會安裝到 PREFIX, 請自行修改
@echo off

SET PREFIX=Z:\Qt\4.7.x

configure ^
    -opensource ^
    -debug-and-release ^
    -mp ^
    -ltcg ^
    -fast ^
    -no-qt3support ^
    -no-dsp ^
    -no-vcproj ^
    -prefix %PREFIX% ^
    -nomake examples ^
    -nomake demos ^
    -nomake translations
MKDIR %PREFIX%\mkspecs
XCOPY /E /K mkspecs\* %PREFIX%\mkspecs
nmake
nmake install
nmake clean

  • 開啟 VisualStudio Command Prompt, 執行 build.bat
  • 如有需要可把 Qt 安裝路徑加入 Path 環境變數

install Qt visual studio addin

install OgreSDK 1.7.x

TalkStyle 檔案庫已經內含 ORGE SDK。如有需要重新編譯請參考How to build ORGE

install Boost library

TalkStyle 檔案庫已包含 Boost,如有需要重新編譯請參閱How to build Boost

Build TalkStyle

  • 開啟 Chiwawa\vc_script\Chiwawa.sln
  • 確定 Qt add-in 設定正確

Qt add in.png

  • 按下編譯

FAQs

Q1:

在clone的時候發生一些error,請問是因為msysgit不支援unicode的關係嗎?

error message :

Clone chiwawa error.png


Personal tools