Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DllNotFoundException thrown when selecting a different target platform #138

Closed
tschindl opened this issue Nov 5, 2021 · 6 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@tschindl
Copy link

tschindl commented Nov 5, 2021

HEy keijiro, thanks for this cool plugin. Unfortunately I am not pretty sure, if I am wrong in configuration or if there is a bug. I am trying to get NDI streams into Unity (2021.1.26f1 / macos bigsur). After adding your plugin by modifying the the manifest as explained, I tried to add the NDI receiver to an plane, to preview the NDI stream. But it always ends up in an DllNotFoundException:

DllNotFoundException: Processing.NDI.Lib.x64
Klak.Ndi.Interop.Find.Create () (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Interop/Find.cs:24)
Klak.Ndi.SharedInstance.InitializeFind () (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Internal/SharedInstance.cs:27)
Klak.Ndi.SharedInstance.get_Find () (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Internal/SharedInstance.cs:10)
Klak.Ndi.RecvHelper.FindSource (System.String sourceName) (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Internal/RecvHelper.cs:10)
Klak.Ndi.RecvHelper.TryCreateRecv (System.String sourceName) (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Internal/RecvHelper.cs:17)
Klak.Ndi.NdiReceiver.PrepareReceiverObjects () (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Component/NdiReceiver.cs:19)
Klak.Ndi.NdiReceiver.TryReceiveFrame () (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Component/NdiReceiver.cs:41)
Klak.Ndi.NdiReceiver.Update () (at Library/PackageCache/jp.keijiro.klak.ndi@2.0.1/Runtime/Component/NdiReceiver.cs:79)

Maybe you have an advise, how to fix this?

Thanks and best, Tim

@keijiro keijiro self-assigned this Nov 5, 2021
@keijiro keijiro added the question Further information is requested label Nov 5, 2021
@keijiro
Copy link
Owner

keijiro commented Nov 5, 2021

That's weird. You're using macOS, but it seems to use the Windows DLL (Processing.NDI.Lib.x64). Are you trying to build a Windows .exe?

@keijiro
Copy link
Owner

keijiro commented Nov 5, 2021

Or, are you using a plugin that imitates the Windows environment? Could you check if the issue reproduces with a simple minimal project that only include KlakNDI?

@tschindl
Copy link
Author

tschindl commented Nov 5, 2021

In university i am using a windows machine and the build settings are for windows, but on my private computer i am using mac os and i want to work on this project.

@keijiro
Copy link
Owner

keijiro commented Nov 5, 2021

Okay. I reproduced the issue by switching the Target Platform to Windows on macOS Unity Editor.

This issue should be fixed in the next update. Until then, please avoid the problem by switching the Target Platform to macOS while developing the project on Editor. I think you can switch it back to Windows when building the project.

@keijiro keijiro changed the title DllNotFoundException: Processing.NDI.Lib.x64 DllNotFoundException thrown when selecting a different target platform Nov 5, 2021
@tschindl
Copy link
Author

tschindl commented Nov 5, 2021

Hey keijiro - thanks for your help. it is working fine! Nice plugin!

@keijiro
Copy link
Owner

keijiro commented Nov 7, 2021

Fixed in 2.0.2

@keijiro keijiro closed this as completed Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants