Boost logo

Boost :

Subject: Re: [boost] [Boost-build] Building Boost 1.69 with Visual Studio 1.69
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2019-03-28 15:30:21


> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Steven Watanabe via Boost
> Sent: 27 March 2019 18:56
> To: Boost
> Cc: Steven Watanabe
> Subject: Re: [boost] [Boost-build] Building Boost 1.69 with Visual Studio 1.69
>
> AMDG
>
> On 3/27/19 12:02 PM, Paul Bristow wrote:
> >> <snip>
> > I was fully up-to-date on develop yesterday, and installed git a week ago (new machine ;-) ).
> >
>
> The current revision of Boost.Build in develop should
> be e22a75c8 (March 18)
>
> > I am also slightly concerned that specifying the cl.exe fully may not be updated when Visual studio is updated, as happens
> today?
> > But it does seem to using the new compiler version, even though the full cl.exe file specification is no longer correct.
> > Similarly vsvarsall.bat location in the set command will change.
> >
> > But I am getting Boost library files built OK for several compilers and versions, so that's progress.
> >
>
>
> Hmm. It looks like VS2019 isn't being autodetected.
> It seems to be working for Tom's test runners.
>
> Maybe see what you get from:
>
> vswhere -latest -products * -requires
> Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property
> installationPath -version "[16.0,17.0)"
>
> (This is how Boost.Build tries to detect VS2019.)

I don't think that vswhere.exe is visible from my user or VS command prompts :-(

C:\Users\Paul>C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>vswhere.exe
'vswhere.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview>vswhere.exe
'vswhere.exe' is not recognized as an internal or external command,
operable program or batch file.

But one copy is present at C:\Program Files (x86)\Microsoft Visual Studio\Installer and

With no parameters vswhere outputs this

C:\Users\Paul>"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
Visual Studio Locator version 2.6.7+91f4c1d09e [query version 2.0.2250.60958]
Copyright (C) Microsoft Corporation. All rights reserved.

instanceId: bd686eb9
installDate: 10Dec2018 16:18:55
installationName: VisualStudio/15.9.10+28307.557
installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional
installationVersion: 15.9.28307.557
productId: Microsoft.VisualStudio.Product.Professional
productPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe
state: 4294967295
isComplete: 1
isLaunchable: 1
isPrerelease: 0
isRebootRequired: 0
displayName: Visual Studio Professional 2017
description: Professional developer tools and services for small teams
channelId: VisualStudio.15.Release
channelUri: https://aka.ms/vs/15/release/channel
enginePath: C:\program files (x86)\microsoft visual
studio\installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service
releaseNotes: https://go.microsoft.com/fwlink/?LinkId=660692#15.9.10
thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=660708
updateDate: 2019-03-27T11:37:49.0677562Z
catalog_buildBranch: d15.9
catalog_buildVersion: 15.9.28307.557
catalog_id: VisualStudio/15.9.10+28307.557
catalog_localBuild: build-lab
catalog_manifestName: VisualStudio
catalog_manifestType: installer
catalog_productDisplayVersion: 15.9.10
catalog_productLine: Dev15
catalog_productLineVersion: 2017
catalog_productMilestone: RTW
catalog_productMilestoneIsPreRelease: False
catalog_productName: Visual Studio
catalog_productPatchVersion: 10
catalog_productPreReleaseMilestoneSuffix: 1.0
catalog_productRelease: RTW
catalog_productSemanticVersion: 15.9.10+28307.557
catalog_requiredEngineVersion: 1.18.1049.33485
properties_campaignId: 1028583927.1544458409
properties_channelManifestId: VisualStudio.15.Release/15.9.10+28307.557
properties_nickname:
properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe

running his with the options you give produced NO output:
 
C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe -latest -products * -requires
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -version "[16.0,17.0)"

I'm installing some other Visual Studio items to see if that will help.

I conclude that you are correct but what is wrong with my install is as yet unclear to me.

https://devblogs.microsoft.com/setup/vswhere-is-now-installed-with-visual-studio-2017/

dated in 2017 suggests that vswhere.exe should have been present using VS2017.

Do I just need vswhere.exe in my path?

Thanks for yet more help.

Paul


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk