使用VS2012编译Qt-5.5.0
2015-08-20 21:34
393 查看
安装编译QtWebKit所需的工具(见trac.webkit.org关于BuildQtOnWindows)
安装 perl, python, ruby, gnuwin32, openssl等
安装icu库:
download icu library from
http://mirrors.ustc.edu.cn/qtproject/development_releases/prebuilt/icu/prebuilt/msvc2012/icu_53_1_msvc_2012_32_devel.7z
解压缩到C:\ICU
添加 C:\ICU\bin and C:\ICU\lib到系统路径中
在源代码目录下运行:
configure.bat -release -opensource -confirm-license -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -dbus -opengl desktop -openssl -icu -prefix C:\Qt\5.5.0 -I C:\OpenSSL\include -I C:\ICU\include -L C:\OpenSSL\lib -L C:\ICU\lib -nomake
examples -nomake tests
用configure.bat配置时出现一个错误:“qtbase\configure.exe’ 不是内部或外部命令,也不是可运行的程序或批处理文件”。
原因是直接下的代码,并不是用git里clone出来的。
解决办法是在qtbase创建一个.gitignore文件,里面内容为foo。
如在qt-everywhere-opensource-src-5.0.1目录下,可以运行命令:“echo foo > qtbase\.gitignore”。然后再configure.bat即可通过。
nmake
nmake install
编译异常顺利,如果编译包含examples和tests要耗时5个多小时
安装 perl, python, ruby, gnuwin32, openssl等
安装icu库:
download icu library from
http://mirrors.ustc.edu.cn/qtproject/development_releases/prebuilt/icu/prebuilt/msvc2012/icu_53_1_msvc_2012_32_devel.7z
解压缩到C:\ICU
添加 C:\ICU\bin and C:\ICU\lib到系统路径中
在源代码目录下运行:
configure.bat -release -opensource -confirm-license -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -dbus -opengl desktop -openssl -icu -prefix C:\Qt\5.5.0 -I C:\OpenSSL\include -I C:\ICU\include -L C:\OpenSSL\lib -L C:\ICU\lib -nomake
examples -nomake tests
用configure.bat配置时出现一个错误:“qtbase\configure.exe’ 不是内部或外部命令,也不是可运行的程序或批处理文件”。
原因是直接下的代码,并不是用git里clone出来的。
解决办法是在qtbase创建一个.gitignore文件,里面内容为foo。
如在qt-everywhere-opensource-src-5.0.1目录下,可以运行命令:“echo foo > qtbase\.gitignore”。然后再configure.bat即可通过。
nmake
nmake install
编译异常顺利,如果编译包含examples和tests要耗时5个多小时
相关文章推荐
- Qt creator 常用的快捷健
- Qt小项目:Lanqq开发体会
- Qt:Invalid parameter passed to C runtime function.
- Qt 向导 image slider
- QT学习之路之截图
- Qt 的QString类的使用
- QT 总结(五) 对话框QDialog
- 阅读QtCreator--Concurrent预备知识
- PyQt给QLabel添加双击事件
- MFC 转QT 注意事项
- topic8:Qt入门之常用控件认知之QDialog
- topic4:Qt入门之常用qt控件认知之Button系列
- Qt入门之常用qt控件认知之QLabel
- Qt入门之常用qt控件认知之QLineEdit
- Qt入门之常用qt控件认知之QLayout
- QT 50种常用标准对象
- QT creator+OpenCV2.4.2+MinGW 在windows下开发环境配置
- QT QTableView用法小结(设置单元格字体颜色,文本字体...)
- Qt入门之常用qt控件认知之布局控件(QFormLayout,QBoxLayout,QGridLayout,QStackLayout)转帖比较好懂而且全面
- QT表格的宽度自适应调整方法void setStretchLastSection ( bool stretch ) 转帖