You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include FMOD libraries for all available architectures? #39
You could also try to install the UnityPy/fmod-arm branch and see if it works.
Seems working on a Raspberry Pi 3B+ running armv7l, 32-bit Python.
Some thoughts:
The warning hint in the previous version should be preserved to let user know why the library wasn't loaded
On armv8l running 64-bit Python it would still choose the x86_64 Linux library (and it would fail silently due to the try...except block). Since there are no official binary file for 64-bit ARM (?), it should probably be treated as unsupported?
The warning hint in the previous version should be preserved to let user know why the library wasn't loaded
It's shown as exception when the user tries to use the dll while it's not loaded, so the user will still know what to do.
On armv8l running 64-bit Python it would still choose the x86_64 Linux library (and it would fail silently due to the try...except block). Since there are no official binary file for 64-bit ARM (?), it should probably be treated as unsupported?
There is no 64bit ARM version of FMOD for Linux. It only offers arm, armhf, x86 and x86_64.
I guess that 64bit ARM can still load 32bit arm?
I'm not sure if 64bit can handle armhf tho.
I just tried it with an aarch64 docker....and failed to load all libraries,
with arm, armhf and x86 throwing wrong elf error and x86_x84 failing due to another problem.
The arm64-v8a android build resulted in the same error as x86_64,
but considering that it's no wrong elf error, I would assume that the problem is related to the docker.
If you have a Linux on a real 64bit arm system can you try this yourself?
Yes but they have to use 32-bit Python (64-bit Python cannot load 32-bit libraries, but it's possible to run 32-bit Python on a 64-bit machine), and since platform.architecture() returns the architecture of Python itself, we don't have to handle the fallback here.
If you have a Linux on a real 64bit arm system can you try this yourself?
Unfortunately I don't, I just think it's better to tell user that ARM64 isn't supported at the moment.
Something like:
elifsystem=="Linux":
# Raspberry Pi and Linux on arm projectsif"arm"inmachine:
ifarch=="32bit":
arch="armhf"ifmachine.endswith("l") else"arm"elifarch=="64bit":
# Raise an exception for now; Once it gets supported by FMOD we can just modify the code hereraiseNotImplementedError("ARM64 not supported")
elifarch=="32bit":
arch="x86"elifarch=="64bit":
arch="x86_64"
Yes but they have to use 32-bit Python (64-bit Python cannot load 32-bit libraries, but it's possible to run 32-bit Python on a 64-bit machine), and since platform.architecture() returns the architecture of Python itself, we don't have to handle the fallback here.
I guess that this can be put in the exception message as well.
Setting up an x86 python env shouldn't be a problem on Linux.
I will merge the relevant changes as well as the Linux arm libraries with the next update in some days.
Activity
K0lb3 commentedon Mar 28, 2021
Thanks for the report.
I will probably do both,
include the arm & armhf libraries and a try..except for systems that aren't supported.
K0lb3 commentedon Mar 28, 2021
I don't really know much about Raspberry Pi or Linux on arm projects in general,
so could you check if the following code would do:
K0lb3 commentedon Mar 28, 2021
You could also try to install the UnityPy/fmod-arm branch and see if it works.
szescxz commentedon Mar 29, 2021
Seems working on a Raspberry Pi 3B+ running armv7l, 32-bit Python.
Some thoughts:
K0lb3 commentedon Mar 29, 2021
It's shown as exception when the user tries to use the dll while it's not loaded, so the user will still know what to do.
There is no 64bit ARM version of FMOD for Linux. It only offers arm, armhf, x86 and x86_64.
I guess that 64bit ARM can still load 32bit arm?
I'm not sure if 64bit can handle armhf tho.
K0lb3 commentedon Mar 29, 2021
I just tried it with an aarch64 docker....and failed to load all libraries,
with arm, armhf and x86 throwing wrong elf error and x86_x84 failing due to another problem.
K0lb3 commentedon Mar 29, 2021
The arm64-v8a android build resulted in the same error as x86_64,
but considering that it's no wrong elf error, I would assume that the problem is related to the docker.
If you have a Linux on a real 64bit arm system can you try this yourself?
szescxz commentedon Mar 31, 2021
Yes but they have to use 32-bit Python (64-bit Python cannot load 32-bit libraries, but it's possible to run 32-bit Python on a 64-bit machine), and since
platform.architecture()returns the architecture of Python itself, we don't have to handle the fallback here.Unfortunately I don't, I just think it's better to tell user that ARM64 isn't supported at the moment.
Something like:
K0lb3 commentedon Apr 8, 2021
Sorry that I forgot to reply.
I guess that this can be put in the exception message as well.
Setting up an x86 python env shouldn't be a problem on Linux.
I will merge the relevant changes as well as the Linux arm libraries with the next update in some days.
FMOD Linux ARM libraries