Comments (14)
The VS variant (e.g. Enterprise, Community, etc.) shouldn't really matter. It is important, though, that you have the C++ desktop development tools installed; something like:
from php-sdk-binary-tools.
Thank you. After updating the environment everything works fine. So the problem was on my side.
from php-sdk-binary-tools.
Hi Martin,
apparently this code fails to detect the VS installation.
Please try the vswhere
commands manually, e.g. vswhere -nologo -version [15,16) -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text
. Don't they print any output?
Also you can check with 15
instead of the range [15,16)
.
from php-sdk-binary-tools.
Hi,
actually I have a x86 installation of VS 2017. So this was my fault.
But phpsdk-starter.bat -c vc15 -a x86
throws the same error.
I invoked your command. I don't get any output.
from php-sdk-binary-tools.
Could you please post the full output of vswhere
?
from php-sdk-binary-tools.
Here is the output:
C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe
Visual Studio Locator version 2.4.1+g2035d08a45 [query version 1.16.1163.30317]
Copyright (C) Microsoft Corporation. All rights reserved.
instanceId: 6bf81498
installDate: 15.06.2018 18:54:44
installationName: VisualStudio/15.7.3+27703.2026
installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
installationVersion: 15.7.27703.2026
productId: Microsoft.VisualStudio.Product.Community
productPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
isPrerelease: 0
displayName: Visual Studio Community 2017
description: Kostenlose, voll funktionsfähige IDE für Studenten, Open Source- und einzelne Entwickler.
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.7.3
thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=660708
updateDate: 2018-06-15T16:54:44.8573243Z
catalog_buildBranch: d15.7
catalog_buildVersion: 15.7.27703.2026
catalog_id: VisualStudio/15.7.3+27703.2026
catalog_localBuild: build-lab
catalog_manifestName: VisualStudio
catalog_manifestType: installer
catalog_productDisplayVersion: 15.7.3
catalog_productLine: Dev15
catalog_productLineVersion: 2017
catalog_productMilestone: RTW
catalog_productMilestoneIsPreRelease: False
catalog_productName: Visual Studio
catalog_productPatchVersion: 3
catalog_productPreReleaseMilestoneSuffix: 1.0
catalog_productRelease: RTW
catalog_productSemanticVersion: 15.7.3+27703.2026
catalog_requiredEngineVersion: 1.16.1187.57215
properties_campaignId: 688392304.1521228867
properties_channelManifestId: VisualStudio.15.Release/15.7.3+27703.2026
properties_nickname:
properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe
from php-sdk-binary-tools.
Thanks! Seems you've checked out an old SDK version. I suggest you do git checkout php-sdk-2.2.0
.
from php-sdk-binary-tools.
Changed branch:
c:\php-sdk>git checkout php-sdk-2.2.0
HEAD is now at cb51b8f Prepare 2.2.0
Invoked command:
c:\php-sdk>phpsdk-vc15-x86.bat
Could not determine 'vc15' directory
Maybe this can help:
c:\php-sdk>vswhere
Der Befehl "vswhere" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Seems the VS command prompt is unable to find the vswhere command.
from php-sdk-binary-tools.
Seems the VS command prompt is unable to find the vswhere command.
Hmm, usually you don't use the VS command prompt for the PHP SDK. Instead use a vanilla cmd.exe. vswhere
is in the bin
folder of the SDK, so bin\vswhere
should work.
from php-sdk-binary-tools.
Ah, OK. But I still get the same output with vanilla cmd.exe:
c:\php-sdk>bin\vswhere.exe
Visual Studio Locator version 2.6.7+91f4c1d09e [query version 1.16.1163.30317]
Copyright (C) Microsoft Corporation. All rights reserved.
instanceId: 6bf81498
installDate: 15.06.2018 18:54:44
installationName: VisualStudio/15.7.3+27703.2026
installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
installationVersion: 15.7.27703.2026
productId: Microsoft.VisualStudio.Product.Community
productPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
state: 4294967295
isComplete: 1
isLaunchable: 1
isPrerelease: 0
isRebootRequired: 0
displayName: Visual Studio Community 2017
description: Kostenlose, voll funktionsfähige IDE für Studenten, Open Source- und einzelne Entwickler.
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.7.3
thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=660708
updateDate: 2018-06-15T16:54:44.8573243Z
catalog_buildBranch: d15.7
catalog_buildVersion: 15.7.27703.2026
catalog_id: VisualStudio/15.7.3+27703.2026
catalog_localBuild: build-lab
catalog_manifestName: VisualStudio
catalog_manifestType: installer
catalog_productDisplayVersion: 15.7.3
catalog_productLine: Dev15
catalog_productLineVersion: 2017
catalog_productMilestone: RTW
catalog_productMilestoneIsPreRelease: False
catalog_productName: Visual Studio
catalog_productPatchVersion: 3
catalog_productPreReleaseMilestoneSuffix: 1.0
catalog_productRelease: RTW
catalog_productSemanticVersion: 15.7.3+27703.2026
catalog_requiredEngineVersion: 1.16.1187.57215
properties_campaignId: 688392304.1521228867
properties_channelManifestId: VisualStudio.15.Release/15.7.3+27703.2026
properties_nickname:
properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe
And:
c:\php-sdk>phpsdk-vc15-x86.bat
Could not determine 'vc15' directory
from php-sdk-binary-tools.
Then please try bin\vswhere -nologo -version [15,16) -property installationPath -format text
. If that does report the installationPath
, you did not have the Microsoft.VisualStudio.Component.VC.Tools.x86.x64
component installed, and need to update your VS installation.
from php-sdk-binary-tools.
Now I got:
c:\php-sdk>bin\vswhere -nologo -version [15,16) -property installationPath -format text
installationPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
I will update my VS and report again.
Thank you.
from php-sdk-binary-tools.
I updated my VS 2017 but still get the same errors. What is your preferred VS version? Where can I get this? Maybe there are some incompatibilities.
from php-sdk-binary-tools.
yes, Following the steps, I also solved the problem
from php-sdk-binary-tools.
Related Issues (20)
- no genera librerias dll HOT 2
- Supporting multiple toolsets for a single VS installation HOT 3
- PGO CLI Training HOT 2
- Could not found vc15 folder. HOT 13
- It does not support gdb debug. HOT 2
- Bundle PHP 7.4 HOT 5
- Trying to Create My own Extension HOT 3
- PGO initialization fails on MariaDB download HOT 3
- Add exact requirements / better install manual to readme.md HOT 3
- libzip-1.6.1-vs16-x64 ENABLE_LZMA HOT 4
- Unable to build PHP master with VS 2019 because of iconv/sqlite3 dependency mismatch HOT 6
- Symfony HOT 1
- Auto
- MSys certs need updating
- Could not determine 'vs16' directory HOT 2
- How to choose vs 2017 when execute phpsdk-vc15-x64.bat? HOT 7
- when a path is contains blank spaces,bat execution failure HOT 5
- Failed to fetch supported branches HOT 4
- when command line include space in path the cli is not run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-sdk-binary-tools.