openspades icon indicating copy to clipboard operation
openspades copied to clipboard

AngelScript registering AudioChuck fails with AS_MAX_PORTABILITY set(Risc-V hardware)

Open Vixea opened this issue 2 years ago • 1 comments

The important bit of the log

2023/11/02 04:15:50 [ScriptManager.cpp:44]  (0, 0) : ERR  : Failed in call to function 'RegisterObjectBehaviour' with 'AudioChunk' and 'void f()' (Code: asNOT_SUPPORTED, -7)

2023/11/02 04:15:50 [Main.cpp:676] [!] Terminating due to the fatal error: Not supported
at /home/sipeed/Documents/projects/openspades/Sources/ScriptBindings/ScriptManager.cpp:190
static void spades::ScriptManager::CheckError(int) at ScriptManager.cpp:189
spades::ScriptManager::ScriptManager() at ScriptManager.cpp:77
int main(int, char**) at Main.cpp:341

Not sure if that's actually the reason behind it anyway. It might be able to confirm if I could build it on Arch says it can't find glew even though I do have it. Pretty simple to reproduce.

  1. Have a Risc-V SBC
  2. build openspades with 1038(it won't build otherwise)
  3. try and run it

If there's anything else you'll need from me I'm more than happy to help ;D

Vixea avatar Nov 02 '23 04:11 Vixea

This can be fixed by using the autowrapper add-on btw, found this out after talking with the AS dev(which also needs 1038)

Vixea avatar Nov 03 '23 00:11 Vixea