I was stuck in this problem for many days.
Wax(https://github.com/probablycorey/wax support armv7 and armv7s architecture only, but my project uses arm64 architecture.
The error message is "Error opening wax scripts: loading wax stdlib: bad header in precompiled chunk".
So I guess the problem is in wax_stdlib.h. However this file is a precompiled result of lua scripts in stdlib ducoment, and I don't know how to precompile lua scripts in 64-bit.
How can I fix it?