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

Error loading needed lib UnityPlayer.so #1580

Closed
tmahlstrom opened this issue Jun 12, 2024 · 3 comments
Closed

Error loading needed lib UnityPlayer.so #1580

tmahlstrom opened this issue Jun 12, 2024 · 3 comments

Comments

@tmahlstrom
Copy link

I'm trying to run my own Unity game on my Pi 4. It looks like it's not able to find UnityPlayer.so.

Is that something I need to install separately? Apologies as I'm new to many of these things.

[user]@LEDPi:~/Documents $ ./test_linux_1.x86_64
Dynarec for ARM64, with extension: ASIMD CRC32 PageSize:4096 Running on Cortex-A72 with 4 Cores
Params database has 25 entries
Box64 with Dynarec v0.2.4 45c4117 built on Jun 12 2024 10:33:04
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 36 Env var
Looking for ./test_linux_1.x86_64
Rename process to "test_linux_1.x86_64"
Error loading needed lib UnityPlayer.so
Using native(wrapped) libm.so.6
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Using native(wrapped) libpthread.so.0
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Error loading one of needed lib
Error: loading needed libs in elf /home/[user]/Documents/test_linux_1.x86_64

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 12, 2024

is this lib UnitPlayer.so present?

@tmahlstrom
Copy link
Author

tmahlstrom commented Jun 12, 2024

I can't find it. Tried ldconfig -p | grep UnityPlayer.so.

Again, total linux amateur here. Is there a simple way to install it? sudo apt install doesn't work. Should I have to do this, or is it fishy that I would have to do this at all?

Very much appreciate the help.

Some more details:
I installed box64 following this guide https://pimylifeup.com/raspberry-pi-x64/, and did end up installing version 0.2.4 for my pi 4. The latest version wasn't installing and one comment said that worked best for pi4. Could be that I only have 2GB.

I tried building the Unity game with mono and IL2CPP. Both got same error.

Edit: thinking more, the problem is likely that I'm using the older version of box64, yeah? If so, should I expect 2G to be enough to install this? Recommendation on swap file vs swap partition, if needed?

@tmahlstrom
Copy link
Author

Welp, UnityPlayer.so is created by Unity when it builds Linux games. I just wasn't carrying that over to the Pi.

Thanks.

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