wxWidgets Tips: Compile wxWidgets 3.0.2 using Visual Studio 2015
2015-09-19 22:47
671 查看
首先我们要设置环境变量,设置方法见:《wxWidgets Tips: Compile wxWidgets 3.0.2 using Visual Studio 2013 (1) 》
目前的 wxWidgets 3.0.2 要想用 Visual Studio 2015 编译,还必须打一个官方提供的 patch,见:《wxWidgets Tips: 用 Visual Studio 2015 编译 wxWidgets》
然后,如果我们想要编译 64 位版本,还要注意这个问题:《wxWidgets Tips: 用 Visual Studio 编译 wxWidgets 的 64 位版本》
然后我们就可以用 Visual Studio 2015 编译 wxWidgets 的各种版本了。编译选项示例如下:
cd /d %WXWIN%\build\msw
然后再通过 nmake 按照以下编译选项进行编译:
截屏:
cd /d %WXWIN%\build\msw
然后再通过 nmake 按照以下编译选项进行编译:
截屏:
wxWiki: WxWidgets Build Configurations
wxWiki: WxWidgets 3.0.x Documents
wxWidgets类库结构图
wxWidgets 的 Linux / Windows 混合开发环境
How to compile a wxWidgets application in Visual Studio 2008?
wxWidgets, C++ libraries and C++11
wxWidgets编译简介
wyoGuide: A guide, a tutorial for developing well-designed cross-platform applications
目前的 wxWidgets 3.0.2 要想用 Visual Studio 2015 编译,还必须打一个官方提供的 patch,见:《wxWidgets Tips: 用 Visual Studio 2015 编译 wxWidgets》
然后,如果我们想要编译 64 位版本,还要注意这个问题:《wxWidgets Tips: 用 Visual Studio 编译 wxWidgets 的 64 位版本》
然后我们就可以用 Visual Studio 2015 编译 wxWidgets 的各种版本了。编译选项示例如下:
编译 x86 版本
打开 Visual Studio Tools 里面的 VS2015 x86 Native Tools Command Prompt,先执行cd /d %WXWIN%\build\msw
然后再通过 nmake 按照以下编译选项进行编译:
Version | nmake command |
---|---|
Static libraries x86 Debug | nmake /f makefile.vc std=C++11 SHARED=0 BUILD=debug TARGET_CPU=X86 /A |
Static libraries x86 Release | nmake /f makefile.vc std=C++11 SHARED=0 BUILD=release TARGET_CPU=X86 /A |
Dynamic libraries x86 Debug | nmake /f makefile.vc std=C++11 SHARED=1 BUILD=debug TARGET_CPU=X86 /A |
Dynamic libraries x86 Release | nmake /f makefile.vc std=C++11 SHARED=1 BUILD=release TARGET_CPU=X86 /A |
编译 x64 版本
打开 Visual Studio Tools 里面的 VS2015 x64 Native Tools Command Prompt,先执行cd /d %WXWIN%\build\msw
然后再通过 nmake 按照以下编译选项进行编译:
Version | nmake command |
---|---|
Static libraries x64 Debug | nmake /f makefile.vc std=C++11 SHARED=0 BUILD=debug TARGET_CPU=X64 /A |
Static libraries x64 Release | nmake /f makefile.vc std=C++11 SHARED=0 BUILD=release TARGET_CPU=X64 /A |
Dynamic libraries x64 Debug | nmake /f makefile.vc std=C++11 SHARED=1 BUILD=debug TARGET_CPU=X64 /A |
Dynamic libraries x64 Release | nmake /f makefile.vc std=C++11 SHARED=1 BUILD=release TARGET_CPU=X64 /A |
参考文章
wxWiki: Microsoft Visual C++ GuidewxWiki: WxWidgets Build Configurations
wxWiki: WxWidgets 3.0.x Documents
wxWidgets类库结构图
wxWidgets 的 Linux / Windows 混合开发环境
How to compile a wxWidgets application in Visual Studio 2008?
wxWidgets, C++ libraries and C++11
wxWidgets编译简介
wyoGuide: A guide, a tutorial for developing well-designed cross-platform applications
相关文章推荐
- 【笔记】Code::Blocks
- Visual Studio 2010 Service Pack 1多国语言版下载
- wxWidgets不完全系列之--wxDC
- CUDA 4.0 + Visual Studio 开发环境搭建
- Visual Studio 2012/2010/2008 远程调试
- Web.config配置文件详解
- 小白探访WINDOWS下的驱动(五) 第一个HELLO驱动(插曲-调试环境设置HOST&TARGET)
- 无法打开文件“opencv_calib3d240d.lib”
- dcmtk提示无法解析的外部符号(unresolved external symbol)的解决方法
- Visual Studio 2013之Opendv配置【未完】
- Remote debug in windows
- 安装visual studio时遇到的IE限制问题
- Visual Studio 的断点调试技巧
- VC++错误:error C2065: 'SHCreateDirectoryEx' : undeclared identifier
- 在控制台(Console)环境下编译Windows GUI程序
- 在win8.1系统下运行VC++6.0
- 第三次学长授课之C#编写记事本----感想
- [OpenCV] -- Win8.1下配置OpenCV的Qt(MSVC2013编译器)开发环境
- openframawork的下载与安装
- 在WinDOWS X64下 Cuda NVCC 与 Intel C/C++ compiler联合使用的问题