defold / extension-spine

The Defold specific Spine runtime implementation
Other
32 stars 14 forks source link

Cannot build on Linux host (in Github Actions runner) #71

Open dapetcu21 opened 2 years ago

dapetcu21 commented 2 years ago

I get this whenever I try to build using bob on a Github Actions ubuntu-latest runner. It crashed for me when building for HTML, but I think it might crash for any target.

What seems odd to me is that it's looking for linux-x86-64/libSpineExt.so and that lib exists as x86_64-linux/libSpineExt.so in the extension. Also why does it need OpenAL on the machine that runs bob?

Bob version: 487296f0e70e8f3c09d7f3e79673926bc8ee18ae Spine ext version: 2.0.8

Unable to load library 'SpineExt':
libopenal.so.1: cannot open shared object file: No such file or directory
libopenal.so.1: cannot open shared object file: No such file or directory
Native library (linux-x86-64/libSpineExt.so) not found in resource path ([file:/home/runner/work/rethink-game/rethink-game/repo/app/build/plugins/defold-spine/plugins/share/pluginSpineExt.jar])
JCash commented 2 years ago

I guess it's because I've reused the build pipeline for the engine, in order to build a shared library, it probably adds an engine library, which adds the dependency. (I thought I used the _null.a dependencies) We should remove that ofc, so that it can be used stand alone.

dapetcu21 commented 2 years ago

I tried an sudo apt install libopenal1 as a workaround and now it complains about libGLU.so. I'm gonna try with libglu1-mesa too, but I have a feeling this will be a dependency hell rabbit hole ending in requiring OpenGL which I'm not sure I can give it on a headless runner.

dapetcu21 commented 2 years ago

Update: sudo apt install libopenal1 libglu1-mesa seems to have worked as a workaround.