When I try to Build my game I get the following error:
UATHelper: Packaging (Windows): Unable to instantiate module 'Stereolabs': System.IO.IOException: Der Vorgang ist bei einer Datei mit einem ge�ffneten Bereich, der einem Benutzer zugeordnet ist, nicht anwendbar. : 'D:\Documents\Unreal Projects\hmsplAI\Plugins\Stereolabs\Binaries\Win64\sl_zed_c.dll'
UATHelper: Packaging (Windows): at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
UATHelper: Packaging (Windows): at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
UATHelper: Packaging (Windows): at Stereolabs.LoadCWrapper(ReadOnlyTargetRules Target, String DirPath) in D:\Documents\Unreal Projects\hmsplAI\Plugins\Stereolabs\Source\Stereolabs\Stereolabs.Build.cs:line 200
UATHelper: Packaging (Windows): at Stereolabs..ctor(ReadOnlyTargetRules Target) in D:\Documents\Unreal Projects\hmsplAI\Plugins\Stereolabs\Source\Stereolabs\Stereolabs.Build.cs:line 88
UATHelper: Packaging (Windows): (referenced via hmsplAI.uproject -> Stereolabs.uplugin)
UATHelper: Packaging (Windows): Took 0,8001792000000001s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\nesth\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.2\UBT-hmsplAI-Win64-Shipping.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 2s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error
i also can not build the plugin. I have a c++ project. if i put the plugin from your example project in there and try to build the project i get errors.
If i build your project and then copy the plugin with the binaries into my project i can open my project and everything works in editor. but when I want to build the game I get the error from above.
If I understand correctly the German error message, it says something like “The operation is not applicable on a file with an open area assigned to a user”, is that correct?
I think the message in English would be " The requested operation cannot be performed on a file with a user-mapped section open", and it seems to be caused by a program being already using your DLL.
Can you try:
checking the DLL file is not open / used by anything and try packaging again?
closing every program and package it via command line? You can also restart your computer beforehand to be sure all applications release the DLL.
Also, are you able to directly package our sample project?
Ok now I wanted to try to build game from your example project. I have to say, that i am now on another workstation.
Problem is that I can not build the example project to open it.
I downloaded the actual sdk from your website and exemple project for unreal (ue5.2) from github.
I generate solution and when I want to build it I get the following error:
Using bundled DotNet SDK version: 6.0.302
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" ZEDSamplesEditor Win64 Development -Project="D:\Downloads\zed-UE5-ue5.2\ZEDSamples.uproject" -WaitMutex -FromMsBuild
1>Log file: C:\Users\aleks\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for ZEDSamplesEditor (no existing makefile)
1>ZED SDK Minor Version mismatch : found 7 expected 7
1>Unable to instantiate module 'Stereolabs': ZED SDK Minor Version mismatch : found 7 expected 7
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: Der Befehl ""C:\Program Files\Epic Games\UE_5.2\Engine\Build\BatchFiles\Build.bat" ZEDSamplesEditor Win64 Development -Project="D:\Downloads\zed-UE5-ue5.2\ZEDSamples.uproject" -WaitMutex -FromMsBuild" wurde mit dem Code 6 beendet.
1>Die Erstellung des Projekts "ZEDSamples.vcxproj" ist abgeschlossen -- FEHLER.