编译过程中几个软件
- ‘msvc’
Microsoft Visual C++ (often abbreviated as MSVC or VC++) is an integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages.MSVC is proprietary software; it was originally a standalone product but later became a part of Visual Studio and made available in both trialware and freeware forms. It features tools for developing and debugging C++ code, especially code written for Windows API, DirectX and .NET Framework.
- MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015)
- MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013)
- MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012)
- MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010)
- MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008)
- ‘tools.msbuild’
Microsoft Build Tools (also known as MSBuild and Microsoft Build Engine) is a build tool set for managed code as well as native C++ code and was part of .NET Framework. Visual Studio depends on MSBuild, but MSBuild does not depend on Visual Studio.
MSBuild is a build tool that helps automate the process of creating a software product, including compiling the source code, packaging, testing, deployment and creating documentations. With MSBuild, it is possible to build Visual Studio projects and solutions without the Visual Studio IDE installed. MSBuild is available at no cost.[3] MSBuild was previously bundled with .NET Framework; starting with Visual Studio 2013, however, it is bundled with Visual Studio instead.[4] MSBuild is a functional replacement for the nmake utility, the latter of which remains in use in projects that originated in older Visual Studio releases.
- ‘tools.wix’
The Windows Installer XML Toolset (WiX, pronounced “wicks”), is a free software toolset that builds Windows Installer packages from XML code. It consists of a command-line environment that developers may integrate into their build processes to build MSI and MSM packages. WiX was the first Microsoft project to be released under an open-source license,[2] the Common Public License.
WiX Toolset
- Waf Build Tool
是基于python的开源编译系统
问题
peach的团队提供了源码,使用waf 来build源码的,所以找不到.sln和vcproj文件,没法用vs 2010打开工程文件。
参考链接
方法:
waf msvs2012 或者 waf msvs2010
来生成visual studio 工程文件。
用waf来编译源码命令。
waf configure
waf build
waf install
安装过程中可能问题
注意:
遇到问题时这个命令很有用waf configure -v
,可以打印出详细出错信息。
情况一
本来是打算在主机上安装,主机上安装的是vs 2015,然后各种编译失败!出现的问题:
runner 'C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\BIN\\amd64\\CL.exe', '/help'
最后没能解决,在虚拟机下从新搭建环境,安装了vs 2010, sp1,wix toolset , .netframe work 4; 然后顺利通过。
看到讨论区中有人在vs2012、vs 2013上安装。
情况二 Could not verify version of cl.exe
到相应目录下去运行一下cl.exe,可以得到相应的版本号。
然后在peach-3.1.124-source\build\config
中找到win.py,
修改内部 conf.ensure_version('CXX', ['16.00.40219.01', '17.00.61030', '18.00.21005.1', '18.00.31101'])
,将刚才运行cl.exe得到的版本加进去。
情况三
在解决问题的过程中发现有人讲peach放在了中文目录下,可能会出现问题,解决方法:一种:换为英文目录;二种:修改配置文件,参考链接
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)