UNav-Sim icon indicating copy to clipboard operation
UNav-Sim copied to clipboard

Some Platforms were skipped due to invalid SDK setup: Android.

Open olayasturias opened this issue 1 year ago • 4 comments

When following these instructions: cd ~/UNav-Sim/Unreal/Environments/Blocks right-click on Blocks.uproject, select Unreal Engine Generate Project Files

I get the following error:

Discovering modules, targets and source code for project...
Unhandled exception: System.UnauthorizedAccessException: Access to the path '/home/freyja/Underwater_Simulator/UNav-Sim/Unreal/Environments/Blocks/Plugins/UNav-Sim/Content/VehicleAdv/SUV/AutomotiveMaterials/Textures' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileStatus.ThrowOnCacheInitializationError(ReadOnlySpan`1 path)

It seems like it needs sudo permissions for accessing that folder

olayasturias avatar Mar 02 '23 09:03 olayasturias

A workaround is to modify the permissions of that folder using Nautilus > right click on folder > Properties > Permissions tab. Now I get the following error:

Writing project files... 99%
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at UnrealBuildTool.VSCodeProjectFileGenerator.WriteConfiguration(String Name, String ProjectName, IEnumerable`1 SourceFiles, CppStandardVersion CppStandard, FileReference CompilerPath, DirectoryReference SysRootPath, Dictionary`2 ModuleCommandLines, JsonFile OutFile, DirectoryReference OutputDirectory) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 670
   at UnrealBuildTool.VSCodeProjectFileGenerator.WriteCppPropertiesFile(DirectoryReference OutputDirectory, ProjectData Projects) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 656
   at UnrealBuildTool.VSCodeProjectFileGenerator.WritePrimaryProjectFile(ProjectFile UBTProject, PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 281
   at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 2821
   at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1176
   at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 233
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 648


olayasturias avatar Mar 02 '23 09:03 olayasturias

Experienced the same error - I reinstalled UE5 (ue5-main branch) and no longer get this error when generating project files. However, I'm still unable to open simulation due missing modules (Blocks and AirSim).

saraaldhaheri avatar Nov 18 '23 20:11 saraaldhaheri

@saraaldhaheri can you provide more information about the OS that you are using?

abdelhakim96 avatar Apr 27 '24 15:04 abdelhakim96

Experienced the same error - I reinstalled UE5 (ue5-main branch) and no longer get this error when generating project files. However, I'm still unable to open simulation due missing modules (Blocks and AirSim).

I am having the same issue and I am on Ubuntu 20.04.

ziyanghong avatar Jul 30 '24 10:07 ziyanghong

Same thing here with Manjaro (I updated the setup.sh accordingly to my OS)

T0T4R4 avatar Oct 20 '24 21:10 T0T4R4

遇到相同的错误 - 我重新安装了 UE5(ue5-main 分支),并且在生成项目文件时不再收到此错误。但是,由于缺少模块(Blocks 和 AirSim),我仍然无法打开模拟。 I have the same issue, and my ue is 5.4 and my ubuntu is 20.04

hengshanshawn avatar Nov 04 '24 14:11 hengshanshawn

I used UE 5.1 on windows, wsl ubuntu 20.04 and I have the problem when I build the Block.sln in Visual Studio. It also caused the same problem that the project is missing Block and AirSim

taeseongkr avatar Nov 05 '24 00:11 taeseongkr

I solved this problem in the following way for your reference. Firstly, UNav-Sim/Unreal/Environments/Blocks/Source/Blocks.Target.cs add DefaultBuildSettings=BuildSettingsVersion.V2; Then,open Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformBase.cpp,replace Arguments+=”-Progress-NoEngineChanges-NoHotReloadFromIDE with Arguments += " -Progress"; Lastly,recompile unreal engine and UNav-Sim from ./setup.sh.

sonya1376 avatar Dec 05 '24 06:12 sonya1376