microsoft / AirSim

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

Build failed - Error: Could not load cache #4660

Closed tkdeprooo closed 2 years ago

tkdeprooo commented 2 years ago

Question

What's your question?

How can I run build.cmd on VS 2022? There is this error that pops up :

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

I'm trying to initialise AirSim by following the instructions here "https://microsoft.github.io/AirSim/build_windows/" but I am stuck on the step that requires me to run build.cmd

Context details

Windows 11, UE 4.27.2, VS 2022

Include details of what you already did to find answers

I've already tried to search the issues and I found a similar one which used another user's link but it doesn't seem to work.. I also tried to use VS 2019 but it couldn't work and the cmd prompt was to use VS2022

jonyMarino commented 2 years ago

@tkdeprooo! These seems to be a CMake issue. Maybe try updating you cmake version?

tkdeprooo commented 2 years ago

Hi @jonyMarino ! Thank you for your reply! I managed to solve the issue by running the "Developer Command Prompt for VS 2022" using administrator and it works fine now! (Not sure if that's an amateur mistake!) Thank you for your time anyways!