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 Occurs After Replacing opencvforunity.dll in OpenCVforUnity 2.6.5 with OpenCV 4.10.0 (CUDA Backend) #204

Open
youpenrai opened this issue Feb 4, 2025 · 1 comment

Comments

@youpenrai
Copy link

I followed the instructions in this guide to build OpenCV 4.10.0 for GPU acceleration in an OpenCVforUnity 2.6.5 Yolo v8 Segmentation project. I placed the built OpenCV as a native plugin and replaced the opencvforunity.dll, but I encountered a DllNotFoundException for opencvforunity.dll.

How can I resolve this issue?

@EnoxSoftware
Copy link
Owner

Thank you for your report.
In my environment, the dll files created by the following procedure worked fine.

  • Build the dll file with cuda enabled with the following settings: 65 dll files were generated.

Image
Image

  • Copy the built group of files to the ‘Plugins/Windows/x86_64’ folder and set ImportSettings as in this image.

  • Then replace the opencvforunity.dll file in the Extra package with opencvforunity.dll in the Plugins folder.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants