microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.51k stars 4.6k forks source link

Build command cmake error AirSim #builds #4822

Open agam002 opened 1 year ago

agam002 commented 1 year ago

Question

What's your question?

Hi , I got this error while trying to run the build command on VS command prompt as admintrator. This is how the error looked like :


Visual Studio 2022 Developer Command Prompt v17 .5.3 Copyright (c) 2022 Microsoft Corporation


C:\Windows\System32>cd AirSim

C:\Windows\System32\AirSim>build.cmd found Powershell Found cmake version: 3.14.7 Starting cmake to build rpclib... CMake Error: Could not create named generator Visual Studio 17 2022

Generators

Error: could not load cache Error: could not load cache

Build failed - see messages above.

Include context on what you are trying to achieve

N/A

Context details

I am running it on windows 11, unreal engine 4.27.2.

Include details of what you already did to find answers

I saw another solution which is to run the command prompt as adminstrator which I did, but I still get the same error as shown. Greatly appreciate any help given! Thank you!

MatvV04 commented 1 year ago

Hi, I had a similar issue, what worked for me was to manually install the most recent version of cmake 3.26.3 (when I'm typing this) while you are using version 3.14.7