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: LottiePlugin assembly on MacOS #11

Closed
chile109 opened this issue Jun 15, 2023 · 4 comments
Closed

DllNotFoundException: LottiePlugin assembly on MacOS #11

chile109 opened this issue Jun 15, 2023 · 4 comments

Comments

@chile109
Copy link

Hello, I followed the manual to open sample scene but get the DLL error.
截圖 2023-06-15 下午5 22 03

This is my environment detail:

  • Apple M2 chip Ventura
  • Unity 2021.3.16f1

I saw there is also a similar issue: #6
How can I fixed that?

@simonpham
Copy link

Check this
Samsung/rlottie#496

@chile109
Copy link
Author

@simonpham After check your solution, seems like it need Cmake rebuild that rlottie?
Sorry I am a Unity Developer and have no experience how to do it, need more clues.

@gindemit
Copy link
Owner

Hello @chile109, thanks for trying out. It seems that the current compiled native libraries are targeting only x86_64 architecture. And you have the arm64 CPU.

You can check it yourself In terminal:

konstantingindemit@Konstantins-MBP OSX % file libLottiePlugin.dylib
libLottiePlugin.dylib: Mach-O 64-bit dynamically linked shared library x86_64
konstantingindemit@Konstantins-MBP OSX % file librlottie.dylib
librlottie.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Can you please try out the attached files.
Archive.zip
You need to unpack the zip archive, close Unity project and replace the dylib files in the
git/unity-rlottie/unity/RLottieUnity/Assets/LottiePlugin/Plugins/OSX folder.

With the attached files I get following in terminal:

konstantingindemit@Konstantins-MBP rlottieOSXArm64 % file libLottiePlugin.dylib 
libLottiePlugin.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64
- Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64
- Mach-O 64-bit dynamically linked shared library arm64]
libLottiePlugin.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
libLottiePlugin.dylib (for architecture arm64):	Mach-O 64-bit dynamically linked shared library arm64
konstantingindemit@Konstantins-MBP rlottieOSXArm64 % file librlottie.dylib 
librlottie.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64
- Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64
- Mach-O 64-bit dynamically linked shared library arm64]
librlottie.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
librlottie.dylib (for architecture arm64):	Mach-O 64-bit dynamically linked shared library arm64

@chile109
Copy link
Author

Hey @gindemit , after replace the libLottiePlugin.dylib the plugin is working now.
Thanks for your help and Detailed explanation!

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

3 participants