首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >vs2010编译64位qt5.5

vs2010编译64位qt5.5

作者头像
用户3519280
发布2023-07-06 11:49:31
发布2023-07-06 11:49:31
8110
举报
文章被收录于专栏:c++ 学习分享c++ 学习分享

vs2010编译64位qt5.5

下载qt5.5源代码

编译环境:

1、64位win7操作系统

2、安装vs2010

3、下载并安装 Perl Python Ruby

     * Perl version 5.12 or later   [http://www.activestate.com/activeperl/]      * Python version 2.7 or later  [http://www.activestate.com/activepython/]      * Ruby version 1.9.3 or later  [http://rubyinstaller.org/]

4、下载安装 DirectX SDK [https://www.microsoft.com/en-us/download/details.aspx?id=6812]

编译:

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

2、cd到qt源代码目录:cd <path>\qt-everywhere-opensource-src-<version>

3、配置编译选项:configure -prefix e:/qt5.5/msvc2010_x64_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

配置vs2010

1、下载并安装Qt5 Visual Studio Add-in  [http://www.qt.io/download-open-source/#section-2]

2、打开VS2010 -> Qt5 -> Qt Options,在Qt Versions选项卡中添加上述编译的版本

3、新建一个Qt工程,Qt5 -> Qt Project Settings,在Version中,指定上述编译的版本

4、vs选择x64,编译,生成64位的程序

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-06-28,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • vs2010编译64位qt5.5
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档