microsoft / AirSim

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

update_from_git.bat does not create .sln file #4005

Open catproof opened 3 years ago

catproof commented 3 years ago

I am following this guide: https://microsoft.github.io/AirSim/unreal_blocks/

and at the step where I have to run 'update_from_git.bat' I get the following:

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>update_from_git.bat Using AirSimPath = ......

        New File                 389        C:\Users\Nic\source\repos\AirSim\Unreal\Plugins\AirSim\Source\AirLib\AirSim.props

      *EXTRA File                389        C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\AirSim.props

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>rd /s/q Build The system cannot find the file specified.

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>rd /s/q Binaries The system cannot find the file specified.

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>rd /s/q Intermediate The system cannot find the file specified.

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>rd /s/q Saved

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>mkdir Saved\logs

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>rd /s/q Plugins\AirSim\Binaries The system cannot find the file specified.

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>rd /s/q Plugins\AirSim\Intermediate The system cannot find the file specified.

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>rd /s/q Plugins\AirSim\Saved The system cannot find the file specified.

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>del .sln Could Not Find C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks\.sln

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>setlocal

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>del /q gen_temp.txt Could Not Find C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks\gen_temp.txt

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>powershell -command "& { (Get-ItemProperty 'Registry::HKEY_CLASSES_ROOT\Unreal.ProjectFile\shell\rungenproj' -Name 'Icon' ).'Icon' } > gen_temp.tmp" Get-ItemProperty : Cannot find path 'HKEY_CLASSES_ROOT\Unreal.ProjectFile\shell\rungenproj' because it does not exist. At line:1 char:6

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>type gen_temp.tmp 1>gen_temp.txt

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>set /p gen_bin= 0<gen_temp.txt

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>del /q gen_temp.tmp

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>del /q gen_temp.txt

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>for %f in (*.uproject) do ( echo Generating files for %f /projectfiles "C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks\%f" )

C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks>( echo Generating files for Blocks.uproject /projectfiles "C:\Users\Nic\source\repos\AirSim\Unreal\Environments\Blocks\Blocks.uproject" ) Generating files for Blocks.uproject '/projectfiles' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . .

Any suggestions?

catproof commented 3 years ago

Found the fix for it here: https://github.com/microsoft/AirSim/issues/1219#issuecomment-401883702

This step should be added in the Setup documentation.