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