Unity build dependencies

Hi, I am using the ZED SDK plugin for Unity and want to run my build from Unity on different machines. Since I want to avoid installing the SDK on each machine to run the program, is there a way to include the ZED SDK and cuda as dependencies in the build?

Hi,

You can copy the dll from the bin folder in the ZED SDK installation folder and copy it next to your app’s executable (or even in the folder containing the other dep, it should work too).

Best,

Stereolabs Support

Is copying only the sl_zed64.dll sufficient, even if CUDA is not installed? Or are there additional DLLs that need to be included?

Also, I tested using only sl_zed64.dll on a system where CUDA is installed but the ZED SDK is not. The execution stopped with the following log:

Optimizing neural model … The process can take few minutes. Running for 599.95 seconds.
Optimization process Timeout. Please try to optimze the AI models outside of Unity, using the ZED Diagnostic tool

If you are using the AI module of the ZED SDK, you also need sl_ai64 as well as all the cuda dependencies.

Stereolabs Support

Unfortunately I still get the timeout. I tried with all dlls from the bin folder:

Do you have any other suggestion as to why it might not work?

Do you have internet access?

If yes, clean the ai model installation folder (C:\ProgramData\Stereolabs\resources) and try again.

Yes, I have internet access. I cleaned the folder, but the issue persists. Could it be that the DLLs created on one machine are incompatible with my GPU on another?

Also, is there a specific file where the Unity plugin first looks for a global version of the SDK and then, if not found, looks for the DLLs in the folder with the executable? It would be really helpful to know where this is handled in the code so I can test the standalone build on the same machine where it was created (without uninstalling the SDK) and ensure the issue isn’t related to the GPU on the second machine I’m currently testing on.

Thanks for the help so far!

It’s not explicitly done in the plugin but how the dependencies handling is done on Windows.
First, it looks next to the .exe and then in the PATH (the environment variable) if it exists.

I think you can test it by renaming the ZED SDK folder.

Stereolabs Support

1 Like