Unreal 5.4 Sample Project Packaging Errors

Hi!

Recently picked up a ZED 2i for a project I’m working on in Unreal Engine. I did a fresh install of Visual Studio 2022 and UE 5.4, tried out the ZEDSamples project (worked fine in the editor), but then got quite a few compilation errors when I went to package the project.

It won’t let me attach the log since I’m a new user but all of the errors came from StereolabsMeasureRunnable.cpp, StereolabsMeasureRunnable.h, StereolabsAIDetectionRunnable.cpp, and StereolabsAIDetectionRunnable.h.

I’ve tried setting things up on two different computers with the same results

Setup:

  • Windows 11
  • ZED SDK 4.2.2 (ZEDSamples readme says 4.1, but recent commits suggest 4.2. Also 4.1 caused the project to crash)
  • CUDA 12.6
  • UE 5.4.4 (also tried 5.3.2)
  • Visual Studio Community 2022 (17.12.1) with the .NET Desktop Development, Desktop development with C++, Windows application development, and Game development with C++ workloads included. Also downloaded the MSVC 143 14.38 component as recommended by Unreal

Steps to recreate:

  1. Download ZEDSamples project
  2. Right click uproject and switch to 5.4 Unreal version/generate VS project files
  3. Build solution with CTRL+F5
  4. Open Unreal project, attempt to package the dev configuration.

Any ideas what my be causing this? I didn’t see any errors when I build the solution in VS beforehand, and I’m able to play the levels in the editor without issue, so it seems odd.

Hi,

I have no issue building the project (tested the main branch).

Can you share the error you got please?

Stereolabs Support

Quite a few errors (I don’t see these in Visual Studio either)

[1/4] Compile [x64] StereolabsAIDetectionRunnable.cpp
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(20): error C2061: syntax error: identifier 'ESlErrorCode'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(27): error C3646: 'ObjectDetectionModel': unknown override specifier
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(40): error C2061: syntax error: identifier 'ESlErrorCode'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(48): error C3646: 'BodyTrackingModel': unknown override specifier
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(18): error C2065: 'ObjectDetectionModel': undeclared identifier
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(54): error C2065: 'ObjectDetectionModel': undeclared identifier
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(58): error C2660: 'FSlObjectDetectionRunnable::RetrieveObjects': function does not take 2 arguments
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(20): note: see declaration of 'FSlObjectDetectionRunnable::RetrieveObjects'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(58): note: while trying to match the argument list '(ESlErrorCode, const FSlTimestamp)'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(65): error C2511: 'void FSlObjectDetectionRunnable::RetrieveObjects(ESlErrorCode,const FSlTimestamp &)': overloaded member function not found in 'FSlObjectDetectionRunnable'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(11): note: see declaration of 'FSlObjectDetectionRunnable'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(67): error C4551: function call missing argument list
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(67): error C2597: illegal reference to non-static member 'FSlRunnable::bIsRunning'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(67): note: see declaration of 'FSlRunnable::bIsRunning'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(67): error C3867: 'FSlRunnable::bIsRunning': non-standard syntax; use '&' to create a pointer to member
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(67): error C2568: '&&': unable to resolve function overload
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(74): error C3536: 'ObjectDetectionTime': cannot be used before it is initialized
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(76): error C2597: illegal reference to non-static member 'FSlObjectDetectionRunnable::Fps'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(76): note: see declaration of 'FSlObjectDetectionRunnable::Fps'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(76): error C3867: 'FSlObjectDetectionRunnable::Fps': non-standard syntax; use '&' to create a pointer to member
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(76): error C2568: '+': unable to resolve function overload
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(77): error C2597: illegal reference to non-static member 'FSlObjectDetectionRunnable::PreviousTS'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(26): note: see declaration of 'FSlObjectDetectionRunnable::PreviousTS'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(95): error C2065: 'BodyTrackingModel': undeclared identifier
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(130): error C2065: 'BodyTrackingModel': undeclared identifier
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(135): error C2660: 'FSlBodyTrackingRunnable::RetrieveBodies': function does not take 2 arguments
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(40): note: see declaration of 'FSlBodyTrackingRunnable::RetrieveBodies'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(135): note: while trying to match the argument list '(ESlErrorCode, const FSlTimestamp)'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(142): error C2511: 'void FSlBodyTrackingRunnable::RetrieveBodies(ESlErrorCode,const FSlTimestamp &)': overloaded member function not found in 'FSlBodyTrackingRunnable'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(31): note: see declaration of 'FSlBodyTrackingRunnable'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(144): error C4551: function call missing argument list
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(144): error C2597: illegal reference to non-static member 'FSlRunnable::bIsRunning'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(144): note: see declaration of 'FSlRunnable::bIsRunning'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(144): error C3867: 'FSlRunnable::bIsRunning': non-standard syntax; use '&' to create a pointer to member
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(144): error C2568: '&&': unable to resolve function overload
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(151): error C3536: 'ObjectDetectionTime': cannot be used before it is initialized
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(153): error C2597: illegal reference to non-static member 'FSlBodyTrackingRunnable::Fps'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(153): note: see declaration of 'FSlBodyTrackingRunnable::Fps'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(153): error C3867: 'FSlBodyTrackingRunnable::Fps': non-standard syntax; use '&' to create a pointer to member
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(153): error C2568: '+': unable to resolve function overload
 Compile [x64] StereolabsAIDetectionRunnable.cpp: Exited with error code 2 . The build will fail.
 Compile [x64] StereolabsAIDetectionRunnable.cpp: WorkingDirectory C:\Program Files\Epic Games\UE_5.4\Engine\Source
 Compile [x64] StereolabsAIDetectionRunnable.cpp: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @"C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Intermediate\Build\Win64\x64\UnrealGame\Development\Stereolabs\StereolabsAIDetectionRunnable.cpp.obj.rsp"
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.cpp(154): error C2597: illegal reference to non-static member 'FSlBodyTrackingRunnable::PreviousTS'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsAIDetectionRunnable.h(46): note: see declaration of 'FSlBodyTrackingRunnable::PreviousTS'
[2/4] Compile [x64] StereolabsMeasureRunnable.cpp
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.h(105): error C2061: syntax error: identifier 'ESlErrorCode'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(47): error C2660: 'FSlMeasureRunnable::GrabCallback': function does not take 1 arguments
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.h(105): note: see declaration of 'FSlMeasureRunnable::GrabCallback'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(47): note: while trying to match the argument list '(ESlErrorCode)'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(170): error C2511: 'void FSlMeasureRunnable::GrabCallback(ESlErrorCode)': overloaded member function not found in 'FSlMeasureRunnable'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.h(33): note: see declaration of 'FSlMeasureRunnable'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(174): error C2597: illegal reference to non-static member 'FSlMeasureRunnable::bDepthEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.h(109): note: see declaration of 'FSlMeasureRunnable::bDepthEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(174): error C2597: illegal reference to non-static member 'FSlMeasureRunnable::bNormalsEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.h(112): note: see declaration of 'FSlMeasureRunnable::bNormalsEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(180): error C2597: illegal reference to non-static member 'FSlMeasureRunnable::UpdateSection'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.h(121): note: see declaration of 'FSlMeasureRunnable::UpdateSection'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(180): error C2665: 'FScopeLock::FScopeLock': no overloaded function could convert all the argument types
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Misc\ScopeLock.h(63): note: could be 'FScopeLock::FScopeLock(const FScopeLock &)'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(180): note: 'FScopeLock::FScopeLock(const FScopeLock &)': cannot convert argument 1 from 'FCriticalSection FSlMeasureRunnable::* ' to 'const FScopeLock &'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(180): note: Reason: cannot convert from 'FCriticalSection FSlMeasureRunnable::* ' to 'const FScopeLock'
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Misc\ScopeLock.h(35): note: or       'FScopeLock::FScopeLock(FCriticalSection *)'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(180): note: 'FScopeLock::FScopeLock(FCriticalSection *)': cannot convert argument 1 from 'FCriticalSection FSlMeasureRunnable::* ' to 'FCriticalSection *'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(180): note: There is no context in which this conversion is possible
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(180): note: while trying to match the argument list '(FCriticalSection FSlMeasureRunnable::* )'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(181): error C2597: illegal reference to non-static member 'FSlMeasureRunnable::BuffersPool'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(181): note: see declaration of 'FSlMeasureRunnable::BuffersPool'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(181): error C3867: 'FSlMeasureRunnable::BuffersPool': non-standard syntax; use '&' to create a pointer to member
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(181): error C2568: '[': unable to resolve function overload
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(183): error C2597: illegal reference to non-static member 'FSlMeasureRunnable::bDepthEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(183): note: see declaration of 'FSlMeasureRunnable::bDepthEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(183): error C3867: 'FSlMeasureRunnable::bDepthEnabled': non-standard syntax; use '&' to create a pointer to member
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(183): error C2568: '=': unable to resolve function overload
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(184): error C2597: illegal reference to non-static member 'FSlMeasureRunnable::bNormalsEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(184): note: see declaration of 'FSlMeasureRunnable::bNormalsEnabled'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(184): error C3867: 'FSlMeasureRunnable::bNormalsEnabled': non-standard syntax; use '&' to create a pointer to member
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(184): error C2568: '=': unable to resolve function overload
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(204): error C2597: illegal reference to non-static member 'FSlMeasureRunnable::UpdateSection'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.h(121): note: see declaration of 'FSlMeasureRunnable::UpdateSection'
 Compile [x64] StereolabsMeasureRunnable.cpp: Exited with error code 2 . The build will fail.
 Compile [x64] StereolabsMeasureRunnable.cpp: WorkingDirectory C:\Program Files\Epic Games\UE_5.4\Engine\Source
 Compile [x64] StereolabsMeasureRunnable.cpp: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @"C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Intermediate\Build\Win64\x64\UnrealGame\Development\Stereolabs\StereolabsMeasureRunnable.cpp.obj.rsp"
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(204): error C2665: 'FScopeLock::FScopeLock': no overloaded function could convert all the argument types
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Misc\ScopeLock.h(63): note: could be 'FScopeLock::FScopeLock(const FScopeLock &)'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(204): note: 'FScopeLock::FScopeLock(const FScopeLock &)': cannot convert argument 1 from 'FCriticalSection FSlMeasureRunnable::* ' to 'const FScopeLock &'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(204): note: Reason: cannot convert from 'FCriticalSection FSlMeasureRunnable::* ' to 'const FScopeLock'
C:\Program Files\Epic Games\UE_5.4\Engine\Source\Runtime\Core\Public\Misc\ScopeLock.h(35): note: or       'FScopeLock::FScopeLock(FCriticalSection *)'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(204): note: 'FScopeLock::FScopeLock(FCriticalSection *)': cannot convert argument 1 from 'FCriticalSection FSlMeasureRunnable::* ' to 'FCriticalSection *'
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(204): note: There is no context in which this conversion is possible
C:\Users\pjwha\Documents\UnrealDev\new test\zed-UE5-main\Plugins\Stereolabs\Source\Stereolabs\Private\Threading\StereolabsMeasureRunnable.cpp(204): note: while trying to match the argument list '(FCriticalSection FSlMeasureRunnable::* )'

That was not clear but when I said “building the project”, it was referring to the packaging of the project instead.

It’s probably not a Visual studio installation issue as it would most likely prevent you from building the VS solution, not package the project.

What level did you try to package?

I’ve been trying to build L_BodyTrackingMulti. Also think I tried L_BodyTrackingSingle once.

Sorry, I did not manage to reproduce your issue yet, the project packages successfully on my side.

I’ll keep investigating and update this post when I find something.

Stereolabs Support

i am having the exact same errors. unable to package the ZED samples project even with a fresh install.

1 Like

Hi,

I had a complete different error than yours when trying to package a fresh install (it was not happening with the project already installed on my pc).

I pushed a fix for this error and now it packages successfully on my side. I don’t know if your error if also related to this or not, probably not.