open-airlab / UNav-Sim

Visually Realistic Underwater Robotics Simulator UNav-Sim
Other
132 stars 15 forks source link

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

Open olayasturias opened 1 year ago

olayasturias commented 1 year ago

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 commented 1 year ago

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
saraaldhaheri commented 1 year ago

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).

abdelhakim96 commented 7 months ago

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

ziyanghong commented 4 months ago

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.

T0T4R4 commented 1 month ago

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

hengshanshawn commented 3 weeks ago

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

taeseongkr commented 3 weeks ago

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