Qt 5 最小構建筆記(只編譯QtBase)


只想用Qt5最基本的功能,因此只編譯QtBase。也不想為了編譯一個Qt裝很多東西
(比如非常肥的DirectX SDK)

軟件清單:

Visual Studio 2010 Professional with SP1
Active Perl
git Win32

步驟:

0 設置環境
開Visual Studio Command Prompt
把perl和git都放在PATH里
檢查顯卡驅動是否支持OpenGL2.0以上
可以用這個工具:

https://sites.google.com/site/opengltutorialsbyaks/download/ex
tension-viewer

1 獲取repository:
git clone https://git.gitorious.org/qt/qt5.git qt5

2 獲取qtbase源代碼:
這一步不需要init-repository,直接去
http://qt.gitorious.org/qt/qtbase打包代碼並下載,
然后放在qtbase目錄下。

--- configure.exe
|
-- qtbase
      |- bin
      |- examples 
      |- ...

3 configure

>configure -confirm-license -opensource -release -shared -fast 
-nomake examples -nomake demos -nomake tests -opengl desktop

4 make

>nmake module-qtbase
所用時間差不多是 Qt4.8 的1/3

5 check

把 qtbase/bin 添加到PATH里,編譯一些examples
--
修改:Yennar FROM 210.13.71.*
FROM 210.13.71.*

 

http://m.newsmth.net/article/KDE_Qt/7707


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM