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

Can't get the DLL to load in Editor #21

Closed
Densen90 opened this issue Nov 24, 2020 · 2 comments
Closed

Can't get the DLL to load in Editor #21

Densen90 opened this issue Nov 24, 2020 · 2 comments
Assignees

Comments

@Densen90
Copy link

Hi there,

I installed the mediapipe libraries and got the cpu examples to work.
I can also run your commands 'make cpu' and 'make install'.

Nonetheless I get the "DllNotFoundException: mediapipe_c" exception when running the CPU example scene. If I try to load the libmediapipe_c plugin on startup I get the following warning
"Plugins: Couldn't open Assets/MediaPipe/SDK/Plugins/libmediapipe_c.so, error: Assets/MediaPipe/SDK/Plugins/libmediapipe_c.so: undefined symbol: _ZN2cv6String8allocateEm"

I installed OpenCV as mentioned in the mediapipe installation guide. I am running on Ubuntu 18.04.5 LTS and Unity 2019.4.15f1

I would be grateful for any help.

@homuler homuler self-assigned this Nov 24, 2020
@homuler
Copy link
Owner

homuler commented Nov 24, 2020

Maybe OpenCV is not installed under /usr/lib (e.g. /usr/lib/x86_64-linux-gnu).
cf. https://github.com/homuler/MediaPipeUnityPlugin#opencv

In this case, please update opencv_linux.BUILD according to your environment.

@Densen90
Copy link
Author

Hi there, thank you very much, also for your fast answer. You were right the libraries were under /usr/lib/x86_64-linux-gnu

For anyone encountering this issue maybe the following is helping:

  1. update opencv_linux.BUILD for opencv, so instead of 'lib/libopencv*.so' it is 'lib/x86_64-linux-gnu/libopencv*.so'
  2. rerun make cpu and make install
  3. if unity was open, restart or reimport everything

That worked for me!

Thanks again!

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