Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find any instance of Visual Studio. #43007

Open
SkyBuilder1717 opened this issue Dec 30, 2024 · 5 comments
Open

Could not find any instance of Visual Studio. #43007

SkyBuilder1717 opened this issue Dec 30, 2024 · 5 comments
Assignees
Labels
category:question This issue is a question

Comments

@SkyBuilder1717
Copy link

Describe the bug
While I was compiling MultiCraft game, CMake gave me an error, which is telling:

CMake didn't find any Visual Studio Instances.

But my computer have installed Visual Studio 2022!
So, thats the issue: CMake can't find my Visual Studio for some reason.

Environment

  • OS: Windows 10
  • Compiler: Visual Studio 2022 (CMake)

Expected behavior
CMake must to find my Visual Studio 2022, but it didn't that for some reason.

Failure logs

CMake Error at CMakeLists.txt:6 (project):
  Generator

    Visual Studio 17 2022

  could not find any instance of Visual Studio.



Configuring incomplete, errors occurred!
@SkyBuilder1717 SkyBuilder1717 changed the title could not find any instance of Visual Studio Could not find any instance of Visual Studio. Dec 30, 2024
@greenozon
Copy link

are you able to have some results from this cmd?

"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all

@MonicaLiu0311 MonicaLiu0311 added the category:question This issue is a question label Dec 30, 2024
@MonicaLiu0311
Copy link
Contributor

This doesn't seem to be a vcpkg issue.

@SkyBuilder1717
Copy link
Author

are you able to have some results from this cmd?

"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all

Yes!

Visual Studio Locator version 3.1.7+f39851e70f [query version 3.12.2140.44225]
Copyright (C) Microsoft Corporation. All rights reserved.

instanceId: 8408cf3b
installDate: 16.02.2023 23:53:36
installationName: VisualStudio/17.12.3+35527.113
installationPath: C:\Program Files\Microsoft Visual Studio\2022\Community
installationVersion: 17.12.35527.113
productId: Microsoft.VisualStudio.Product.Community
productPath: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
state: 7
isComplete: 0
isLaunchable: 1
isPrerelease: 0
isRebootRequired: 0
displayName: Visual Studio Community 2022
description: Мощная интегрированная среда разработки, бесплатная для студентов, участников проектов с открытым кодом и отдельных пользователей.
channelId: VisualStudio.17.Release
channelUri: https://aka.ms/vs/17/release/channel
enginePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service
installedChannelId: VisualStudio.17.Release
installedChannelUri: https://aka.ms/vs/17/release/channel
releaseNotes: https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.12#17.12.3
resolvedInstallationPath: C:\Program Files\Microsoft Visual Studio\2022\Community
thirdPartyNotices: https://go.microsoft.com/fwlink/?LinkId=661288
updateDate: 2024-12-07T10:36:12.9068419Z
catalog_buildBranch: d17.12
catalog_buildVersion: 17.12.35527.113
catalog_id: VisualStudio/17.12.3+35527.113
catalog_localBuild: build-lab
catalog_manifestName: VisualStudio
catalog_manifestType: installer
catalog_productDisplayVersion: 17.12.3
catalog_productLine: Dev17
catalog_productLineVersion: 2022
catalog_productMilestone: RTW
catalog_productMilestoneIsPreRelease: False
catalog_productName: Visual Studio
catalog_productPatchVersion: 3
catalog_productPreReleaseMilestoneSuffix: 1.0
catalog_productSemanticVersion: 17.12.3+35527.113
catalog_requiredEngineVersion: 3.12.2149.20818
properties_campaignId: 2030:d3a88c79f0d1491ab7d3352f3d9a78fc
properties_canceled: 0
properties_channelManifestId: VisualStudio.17.Release/17.12.3+35527.113
properties_nickname:
properties_setupEngineFilePath: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe

@greenozon
Copy link

Thanks, good start!
so next question might be - is it possible to explore your cmake file?
did it work before?
if yes, what was changed then?

@SkyBuilder1717
Copy link
Author

Thanks, good start! so next question might be - is it possible to explore your cmake file? did it work before? if yes, what was changed then?

What do you mean 'explore'?

This is my first CMake compiling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants