VC2008 编译 QT4.7

本文介绍如何在Windows环境下使用Visual Studio 2008编译Qt 4.7.3版本。主要步骤包括:打开命令提示符、切换到Qt SDK安装目录、配置编译选项并接受开源许可协议、执行编译命令nmake等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、从菜单运行vc的 Visual Studio 2008 命令提示

 

2、然后cd到qt sdk的安装目录

 

3、

D:/programm/QT/4.7.3>configure -release             
Which edition of Qt do you want to use ?
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
o

This is the Qt for Windows Open Source Edition.

You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 2.1
or the GNU General Public License (GPL) version 3.

Type '3' to view the GNU General Public License version 3 (GPLv3).
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.

Do you accept the terms of the license?
y

也可以用 -debug-and-release 选项,更多自己看 configure -help

 

 

4、D:/programm/QT/4.7.3>nmake

 

这样就ok了,下面可要可不要

清除编译过程的中间文件:nmake confclean

 

一次通过,没啥意外,都是官网下载的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值