D15976: Fix KDevelop's detection for Visual Studio 2017 compiler and tools.
Petros Siligkounas
noreply at phabricator.kde.org
Sat Oct 6 12:39:18 BST 2018
Petross404 added a comment.
@arrowd Yes, I forgot to mention the most important problem. `vcvarsall.bat` now requires this kind of arguments. For example without the `x64` argument I get this:
[ERROR:vcvarsall.bat] Error in script usage. The correct usage is:
Syntax:
vcvarsall.bat [arch] [platform_type] [winsdk_version] [-vcvars_ver=vc_version]
where :
[arch]: x86 | amd64 | x86_amd64 | x86_arm | x86_arm64 | amd64_x86 | amd64_arm | amd64_arm64
[platform_type]: {empty} | store | uwp
[winsdk_version] : full Windows 10 SDK number (e.g. 10.0.10240.0) or "8.1" to use the Windows 8.1 SDK.
[vc_version] : {none} for default VS 2017 VC++ compiler toolset |
"14.0" for VC++ 2015 Compiler Toolset |
"14.1x" for the latest 14.1x.yyyyy toolset installed (e.g. "14.11") |
"14.1x.yyyyy" for a specific full version number (e.g. 14.11.25503)
The store parameter sets environment variables to support Universal Windows Plat
form application
development and is an alias for 'uwp'.
For example:
vcvarsall.bat x86_amd64
vcvarsall.bat x86_amd64 10.0.10240.0
vcvarsall.bat x86_arm uwp 10.0.10240.0
vcvarsall.bat x86_arm onecore 10.0.10240.0 -vcvars_ver=14.0
vcvarsall.bat x64 8.1
vcvarsall.bat x64 store 8.1
Please make sure either Visual Studio or C++ Build SKU is installed.
ERROR: The system was unable to find the specified registry key or value.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>
I can't think of an interactive way to let the user choose the environment. Please enlighten me.
REPOSITORY
R32 KDevelop
REVISION DETAIL
https://phabricator.kde.org/D15976
To: Petross404, #kdevelop
Cc: arrowd, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20181006/9f786bcf/attachment.html>
More information about the KDevelop-devel
mailing list