vircadia / vircadia-native-core

Vircadia open source agent-based metaverse ecosystem.
https://vircadia.com/
Other
531 stars 175 forks source link

PowerPC build #1666

Open CloudyProton opened 2 years ago

CloudyProton commented 2 years ago

There is no build target for ppc64le, cmake exits at

~/Vircadia/vircadia/hifi_qt.py", line 195, in init raise Exception('UNKNOWN CPU ARCHITECTURE!!!') Exception: UNKNOWN CPU ARCHITECTURE!!! CMake Error at CMakeLists.txt:151 (message): prebuild.py failed with error 1

It looks like hifi_qt.py only has targets for x86_64 and aarch64 so even if I manually supply -march= it fails to configure.

System is Debian 11, 5.10.0-14-powerpc64le

daleglass commented 2 years ago

That's quite the niche application these days, isn't it?

You can get past the Qt thing with export VIRCADIA_USE_SYSTEM_QT=1, and using your system packages. That only works if your system Qt version is 5.15 or newer.

You'll probably need to do further fixing since for instance WebRTC comes in as a precompiled binary, because it's such a pain to build. I'm not sure if it can even be compiled on PPC, but probably not. You can disable that since it doesn't provide any critical functionality.

But even if you get this done I'm not sure if it makes sense to bother -- last PowerPC Mac was almost two decades ago. Even if it works it's probably way too slow to be useful.

namark commented 2 years ago

still niche, but not an old mac! https://www.raptorcs.com/TALOSII/

daleglass commented 2 years ago

Fair enough!

I think this should be doable, we've had people build for a Raspberry Pi for instance. But it'll take some work, and it's the first PowerPC build I've heard of, so there may be some unexpected trouble.

stale[bot] commented 1 year ago

Hello! Is this still an issue?