Explored building Amulet a little, quickly discovered the way it builds doesn’t work very well for us to make it work easily for the GameShell (Repository includes prebuilt files for SDL which is one of the reasons why you may not be able to actually link against the build when you try to compile Amulet)
It also seems to have problems compiling with an -m32 flag, so I wound up editing the
Common.mk file here, albeit in a slightly dirty way.
I thought I’d compile under Clang here and include some flags to optimize under this specific hardware. Next, I made sure I had tried to compile once, after which I would copy over
onto the build folder’s
where it replaces the included
and then, after about an hour of playing around, got the right amount of linkflags to get Amulet to build.
make XLDFLAGS+="-lpthread -ldl -lXi -lasound -lsndio -lpulse -lwayland-egl -lwayland-client -lwayland-cursor -lX11 -lXext -lXxf86vm -lXrandr -lXinerama -lXcursor -lXss -lxkbfile -lxkbcommon -lSDL2"
I haven’t tested it beyond this, but it does ask for
main.lua. If you’d like, I could probably send you the build.
Also, I’d probably suggest filing an issue towards their repo to add a linuxarmv7 target or something, so all of THIS would be reduced down to uh.
EDIT: Welp, turns out I’m having a segfault here. I’d test this with GDB and see what’s going on, but there’s no packages for this in the default repos. I guess this is a bit of a deadend? I’ll try to compile under a different Lua interpreter.