Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generating UE5 project file #10532

Closed
gschian0 opened this issue May 19, 2022 · 3 comments
Closed

Error generating UE5 project file #10532

gschian0 opened this issue May 19, 2022 · 3 comments

Comments

@gschian0
Copy link

gschian0 commented May 19, 2022


Required Info
Camera Model { D415 }
Firmware Version (05.12.14.50)
Operating System & Version {Win 10)
Kernel Version (Linux Only)
Platform unreal engine
SDK Version { 2.7 }
Language {C++ unreal engine }
Segment {Entertainment }

attempting to upgrade project files to ue5... I get this error when trying to generate a new project.

`Running C:/Program Files/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project="C:/Users/GennaroSchiano/Documents/GitHub/librealsenseSR/wrappers/unrealengine5/RealSenseUE.uproject" -game -rocket -progress -log="C:\Users\GennaroSchiano\Documents\GitHub\librealsenseSR\wrappers\unrealengine5/Saved/Logs/UnrealVersionSelector-2022.05.19-19.14.36.log"
Log file: C:\Users\GennaroSchiano\Documents\GitHub\librealsenseSR\wrappers\unrealengine5\Saved\Logs\UnrealVersionSelector-2022.05.19-19.14.36.log
Log file: C:\Users\GennaroSchiano\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Discovering modules, targets and source code for project...
Compiled assembly file 'C:\Users\GennaroSchiano\Documents\GitHub\librealsenseSR\wrappers\unrealengine5\Intermediate\Build\BuildRules\RealSenseUEModuleRules.dll' appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Could not load file or assembly 'C:\Users\GennaroSchiano\Documents\GitHub\librealsenseSR\wrappers\unrealengine5\Intermediate\Build\BuildRules\RealSenseUEModuleRules.dll'. Format of the executable (.exe) or library (.dll) is invalid.)
C:\Users\GennaroSchiano\Documents\GitHub\librealsenseSR\wrappers\unrealengine5\Plugins\RuntimeMeshComponent\Source\RuntimeMeshComponent\RuntimeMeshComponent.Build.cs(11,9): error CS0103: The name 'bFasterWithoutUnity' does not exist in the current context
C:\Users\GennaroSchiano\Documents\GitHub\librealsenseSR\wrappers\unrealengine5\Plugins\RealSense\Source\RealSense\RealSense.Build.cs(55,4): error CS0103: The name 'PublicLibraryPaths' does not exist in the current context
C:\Users\GennaroSchiano\Documents\GitHub\librealsenseSR\wrappers\unrealengine5\Plugins\RealSense\Source\RealSense\RealSense.Build.cs(56,4): error CS0103: The name 'PublicLibraryPaths' does not exist in the current context
ERROR: Expecting to find a type to be declared in a target rules named 'RealSenseUETarget'. This type must derive from the 'TargetRules' type defined by Unreal Build Tool`

thanks for any help in advance!
-Gennaro

@gschian0 gschian0 changed the title ub Y Error generating UE5 project file May 19, 2022
@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 20, 2022

Hi @gschian0 The RealSense Unreal wrapper is designed specifically for UE 4.26 and has references in its code that perform version checks, as shown at the link below.

20a7930#diff-6ef71b6febaaf99bfc1a6e6690679392d8afd0bc8eac13a56283990cb37fd7d0R1

Particularly in the wrapper file RealSenseUE.uproject:

"EngineAssociation": "4.26",

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/unrealengine4/RealSenseUE.uproject#L3

@DryreL
Copy link

DryreL commented Dec 7, 2023

I have same problem on UE 5.3

image

@MartyG-RealSense
Copy link
Collaborator

Hi @DryreL The RealSense UE4 wrapper will not work with UE5. A RealSense user shared a RealSense plugin for UE5 at #12262

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants