zed-livelink icon indicating copy to clipboard operation
zed-livelink copied to clipboard

LiveLink UE5 Plugin Does Not Build on Linux x64

Open Kelsios opened this issue 1 year ago • 0 comments

Preliminary Checks

  • [X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • [X] This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

The ZEDLiveLink.uplugin does not build on my Arch x64 machine. I have followed the instructions on the README to no avail. I setup an Unreal project (using version 5.3.2), create the Plugins folder and move the ZEDLiveLink folder inside. Unreal outputs:

LogLinux: Warning: MessageBox: The following modules are missing or built with a different engine version:

ZEDLiveLink ZEDLiveLinkEditor

Would you like to rebuild them now?: Missing new_test Modules: No is implied.

I then try to manually build using UAT, with the following command:

/home/<user>/bin/Linux_Unreal_Engine/Engine/Build/BatchFiles/RunUAT.sh BuildPlugin -plugin=/home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/ZEDLiveLink.uplugin -package=/home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output

Which in turn outputs:

Building UnrealEditor... Determining max actions to execute in parallel (16 physical cores, 16 logical cores) Executing up to 16 processes, one per physical core ------ Building 6 action(s) started ------ [1/6] Compile SharedPCH.UnrealEd.Cpp20.h [2/6] Compile Module.ZEDLiveLink.cpp In file included from /home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output/HostProject/Plugins/ZEDLiveLink/Intermediate/Build/Linux/x64/UnrealEditor/Development/ZEDLiveLink/Module.ZEDLiveLink.cpp:3: In file included from /home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output/HostProject/Plugins/ZEDLiveLink/Intermediate/Build/Linux/UnrealEditor/Inc/ZEDLiveLink/UHT/FrameData.gen.cpp:8: In file included from /home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output/HostProject/Plugins/ZEDLiveLink/Source/ZEDLiveLink/Public/FrameData.h:4: /home/<user>/bin/Linux_Unreal_Engine/Engine/Source/Runtime/Json/Public/Json.h:10:1: warning: Monolithic headers should not be used by this module. Please change it to explicitly include the headers it needs. [-W#pragma-messages] MONOLITHIC_HEADER_BOILERPLATE() ^ /home/<user>/bin/Linux_Unreal_Engine/Engine/Source/Runtime/Core/Public/Misc/MonolithicHeaderBoilerplate.h:6:42: note: expanded from macro 'MONOLITHIC_HEADER_BOILERPLATE' #define MONOLITHIC_HEADER_BOILERPLATE() COMPILE_WARNING("Monolithic headers should not be used by this module. Please change it to explicitly include the headers it needs.") ^ /home/<user>/bin/Linux_Unreal_Engine/Engine/Source/Runtime/Core/Public/HAL/Platform.h:821:29: note: expanded from macro 'COMPILE_WARNING' #define COMPILE_WARNING(x) GCC_DIAGNOSTIC_HELPER(GCC warning x) ^ /home/<user>/bin/Linux_Unreal_Engine/Engine/Source/Runtime/Core/Public/HAL/Platform.h:820:35: note: expanded from macro 'GCC_DIAGNOSTIC_HELPER' #define GCC_DIAGNOSTIC_HELPER(x) _Pragma(#x) ^ <scratch space>:100:6: note: expanded from here GCC warning "Monolithic headers should not be used by this module. Please change it to explicitly include the headers it needs." ^ In file included from /home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output/HostProject/Plugins/ZEDLiveLink/Intermediate/Build/Linux/x64/UnrealEditor/Development/ZEDLiveLink/Module.ZEDLiveLink.cpp:7: /home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output/HostProject/Plugins/ZEDLiveLink/Source/ZEDLiveLink/Private/AnimNode_ZEDLiveLinkPose.cpp:19:5: error: initializer order does not match the declaration order [-Werror,-Wreorder-ctor] CachedDeltaTime(0.0f), ^~~~~~~~~~~~~~~~~~~~~ bMirrorOnZAxis(false) /home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output/HostProject/Plugins/ZEDLiveLink/Source/ZEDLiveLink/Private/AnimNode_ZEDLiveLinkPose.cpp:19:5: note: field 'CachedDeltaTime' will be initialized after field 'bMirrorOnZAxis' CachedDeltaTime(0.0f), ^~~~~~~~~~~~~~~~~~~~~ /home/<user>/Downloads/zed-livelink-4.2.0/ZEDLiveLink/output/HostProject/Plugins/ZEDLiveLink/Source/ZEDLiveLink/Private/AnimNode_ZEDLiveLinkPose.cpp:23:5: note: field 'bEnableScaling' will be initialized after field 'SkeletalMesh' bEnableScaling(false),

This happens after the revamp of the ZedSDK, the last working version for me is v4.0.8, which uses the old LiveLink implementation. Using v4.0.8, I can setup an Unreal project via your examples, connect the LiveLink bus and everything works as it should.

Steps to Reproduce

  1. Download the ZEDLiveLink Unreal Engine plugin.
  2. Create an Unreal Engine 5.3 blank project and copy the plugin to the Plugins folder
  3. Unreal won't build the plugin, try to build manually using UAT
  4. Errors in: ZEDLiveLinkPose.cpp:19:5, AnimNode_ZEDLiveLinkPose.cpp:19:5, AnimNode_ZEDLiveLinkPose.cpp:23:5
  5. Build is not successful. ...

Expected Result

The plugin should be able to be built on Linux systems

Actual Result

The plugin is not built successfully.

ZED Camera model

ZED2i

Environment

OS: Arch Linux x64
GPU: NVidia RTX 3060
ZED SDK: 4.2.0 (also occurs with 4.1.0, v4.0.8 works)
RAM: 32GB

Anything else?

No response

Kelsios avatar Oct 02 '24 10:10 Kelsios