UNav-Sim
UNav-Sim copied to clipboard
Some Platforms were skipped due to invalid SDK setup: Android.
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
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
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 can you provide more information about the OS that you are using?
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.
Same thing here with Manjaro (I updated the setup.sh accordingly to my OS)
遇到相同的错误 - 我重新安装了 UE5(ue5-main 分支),并且在生成项目文件时不再收到此错误。但是,由于缺少模块(Blocks 和 AirSim),我仍然无法打开模拟。 I have the same issue, and my ue is 5.4 and my ubuntu is 20.04
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
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.