Open ggardet opened 3 years ago
That's a known issue, the raycast
, lightmapper_cpu
and oidn
modules are only compatible with x86_64
and should be disabled on other platforms, but the checks we use don't work well for cross-compilation (they check the host arch instead of target arch, which we don't track properly). It should work fine if you build on real hardware however (albeit with latest 3.3
branch, there have been a few fixes since 3.3-stable
for this).
So you should disable these modules with module_denoise_enabled=no module_lightmapper_cpu_enabled=no module_raycast_enabled=no
.
Please note this is native builds, not cross-compiling.
So you're not building from a x86_64 Linux host? Then it should work fine. Can you try latest 3.3
branch?
Specifically, on real hardware, you shouldn't pass this (extremely hacky) check and thus it shouldn't attempt building oidn: https://github.com/godotengine/godot/blob/08bedba3411a5392fe947f3d625c8c933e724b13/modules/denoise/config.py#L12-L18
It fails when cross compiling as platform.machine()
is the host, not the target.
If this is for openSUSE distro packaging, see my Mageia and Fedora package sources (they're the same, I maintain both).
Notably patches to allow unbundling embree and the need to manually disable the lightmapper on !x86_64
because our scripts are broken when run on an x86_64 host:
https://src.fedoraproject.org/rpms/godot/blob/rawhide/f/godot.spec#_25
https://src.fedoraproject.org/rpms/godot/blob/rawhide/f/godot.spec#_242
For the reference after #48455, the raycast and lightmapper_cpu modules can now be built on aarch64. The denoise module is still x86_64 only for now and needs to be disabled manually.
Godot version: 3.3
OS/device including version: openSUSE Tumbleweed
Issue description: I am unable to build godot 3.3 on Arm (aarch64, armv7 and armv6) becauseof:
oidn
is likely too old. A fix is available upstream: https://github.com/OpenImageDenoise/oidn/commit/1439239a3c9a0fb77bd0feda3ea60a3008b808ddSteps to reproduce: Try to build on Arm.
Minimal reproduction project: N/A