ZEDSamples could not be compiled. Try rebuilding from source manually

Hi Everyone !!!
I cannot open the project even though i have followed the instruction step by step.
I constantly get the error from Unreal saying that Zed Samples could not be compiled.
I tried to build the whole project from visual studio.

Get and error saying:

The command ““C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat” ZEDSamplesEditor Win64 Development -Project=“C:\Unreal_Project\zed-UE5-4.2.0\ZEDSamples.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 8.

Can someone please help?

I am using Unreal Engine 5.4.4 with Zed sdk 4.1.4.
My cuda version is 12.1.66.

Steps to Reproduce

1 Clone this repository
2. Right click on the ZEDSamples.uproject and select generate project file
3. open ZedSamples.sln with visual studio.
4. Build the solution and get the error: The command ““C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat” ZEDSamplesEditor Win64 Development -Project=“C:\Unreal_Project\zed-UE5-4.2.0\ZEDSamples.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 8.
5. Try to open ZEDSamples.uproject
6. Get the error:
The following modules are missing or built with a different engine version:

ZEDSamples
Stereolabs
ZED
SpatialMapping
SpatialMappingEditor
ZEDEditor
EnvironmentalLighting

Would you like to rebuild them now?

  1. Click yes
  2. Get the error: ZEDSamples could not be compiled. Try rebuilding from source manually.

Hi,
It seems like you are using different versions of the project and the ZED SDK.
Try to install the ZED SDK 4.2 or use the version of the project that supports the 4.1.4 version of the ZED SDK.

i tried in 4.2 also same error

Can you share the logs available in the output window?
It should have more info that what you provided in your initial post.
Thanks!

The command ““C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat” ZEDSamples Win64 Development -Project=“C:\Users\ustre\Desktop\zed-UE5-4.2.0\ZEDSamples.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 8.

In VS, you should have a window called “output” with more logs in it, and most likely one that tells what is the error :

Build started at 12:08…
1>------ Build started: Project: ZEDSamples, Configuration: Development x64 ------
1>Using bundled DotNet SDK version: 6.0.302
1>Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” ZEDSamples Win64 Development -Project=“C:\Users\ustre\Desktop\zed-UE5-4.2.0\ZEDSamples.uproject” -WaitMutex -FromMsBuild -architecture=x64
1>Log file: C:\Users\ustre\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for ZEDSamples (no existing makefile)
1>Available x64 toolchains (1):
1> * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
1> (Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
1>Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
1>ZED SDK missing
1>Total execution time: 0.67 seconds
1>Unable to instantiate module ‘Stereolabs’: ZED SDK missing
1>(referenced via ZEDSamples.uproject → Stereolabs.uplugin)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ““C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat” ZEDSamples Win64 Development -Project=“C:\Users\ustre\Desktop\zed-UE5-4.2.0\ZEDSamples.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 8.
1>Done building project “ZEDSamples.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 12:08 and took 01.518 seconds ==========

It seems the ZED SDK is not detected.

Can you try to run the Diagnostic tool installed with the ZED SDK. You can find in the installation folder, in Tools/ZED Diagnostic Tool.

Then, save the report and share it with me please.

Thanks.