Visual Studio 2010 编绎Qt5.6.3

本文详细介绍了如何在VS环境下使用Qt编译静态库和动态库,包括设置编译选项、配置过程、构建步骤和下载链接。涵盖配置参数、编译与安装步骤,适合Qt开发者参考。

静态库的编绎

1、打开vs64位命令提示工具:开始菜单->Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio Command Prompt (2010) 

2、cd到qt源代码目录:cd c:\qt5\src

 配置编译选项:

configure -prefix c:\qt5\build _static -opensource -confirm-license -nomake tests -nomake examples -debug-and-release -static -qt-zlib -qt-libpng -qt-libjpeg

-prefix [dir] 编译后的安装路径
-opensource 使用LGPL协议
-confirm-license 自动确确定LGPL2.1许可。
-nomake tests 用生成测试,加快编译
-nomake examples 禁用生成例子,加快编译
-debug-and-release 编译Debug和Release版本
-static 编译静态库
-qt-zlib 使用QT自带的zlib库
-qt-libpng 使用QT自带的libpng库
-qt-libjpeg 使用QT自带的libjpeg库

4、编译: nmake

5、安装: nmake install

6、编译文档: nmake docs

7、安装文档: nmake install_docs

8、清理中间文件: nmake clean

下载地址:

Qt5.6.3静态库forvc2010-C++文档类资源-优快云下载


Dll动态库的编绎

使用参数:

configure -prefix a:\qt\build -opensource -confirm-license -platform win32-msvc2010 -developer-build -opengl desktop -nomake tests -nomake examples
  


下载地址:

https://download.youkuaiyun.com/download/aasmfox/85793174

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿峰的编程博客

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值