CodexLabsLLC / Colosseum

Open source simulator for autonomous robotics built on Unreal Engine with support for Unity
https://codexlabsllc.github.io/Colosseum/
Other
338 stars 106 forks source link

UE5 texture missing during build #24

Open Zartris opened 1 year ago

Zartris commented 1 year ago

Bug report

What's the issue you encountered?

cloned the branch ue5, ran the build, tried to compile using vs2022, got error:

Severity Code Description Project File Line Suppression State Error C1083 Cannot open include file: '/Engine/Private/SceneTexturesCommon.ush': No such file or directory - Plugins\AirSim\Source\AssetCode\OpticalFlowRGBMaterialHlSLCode.cpp 11

xxEoD2242 commented 1 year ago

@Zartris It looks like this file is no longer in UE5 after digging in to this.

From what I can see Optical Flow used a projection matrix in the Scene component that no longer is available (it's commented out). Looks like there will need to be a refactor on how to go about building that texture. I would recommend attempting to remove the Optical Flow material for now if that is standing in your way.

If you figure anything out, please let me know

SYL5683 commented 1 year ago

@xxEoD2242 Thanks for your effort. I met the same problem while trying to compile AirSim in VS2022. Could you explain a little more about how to remove the Optical Flow material? Or is there a better way to use AirSim in UE5 rather than following the official guide provided by Microsoft?

javiermr commented 1 year ago

UE/Unity version: UE5.0.3 autopilot version: N/A OS Version: Ubuntu 20.04

Hi there. I also faced the same issue in Ubuntu. According to my experience with it, I consider that UE5 doesn't find the header like is reported here: https://forums.unrealengine.com/t/new-ue5-c-project-cannot-find-header-files-and-open-source-file-in-visual-studio-2019/520910/10 I've been following the suggestions, but I've not gotten a successful outcome. However, it could be helpful to resolve the issue in windows.

best

xxEoD2242 commented 1 year ago

@Zartris Did this fix your issue? I just delted the AssetCode folder in the plugin so everything should work as expected

guillemdelgado commented 1 year ago

Hello, I was having the same issue as @Zartris using the branch ue5 with the last commit in 41f7d3f.

Using the build.cmd works great but when compiling and running with F5 in Visual Studio 2022, using UE5.1 I got the following errors in Windows

SCannot open include file: '/Engine/Private/SceneTexturesCommon.ush': No such file or directory - D:\Unreal Projects\AirSimCppv2\Plugins\AirSim\Source\AssetCode\OpticalFlowRGBMaterialHlSLCode.cpp

The command ""C:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat" AirSimCppv2Editor Win64 DebugGame -Project="D:\Unreal Projects\AirSimCppv2\AirSimCppv2.uproject" -WaitMutex -FromMsBuild" exited with code 6.

However, I can confirm that deleting the folder AssetCode from the plugin, makes the errors disappear.