SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
2.98k stars 1.22k forks source link

[Package Request] Navidrome #4973

Open rfporter opened 2 years ago

rfporter commented 2 years ago
hgy59 commented 2 years ago

@rfporter I tried to build a navidrome package. The frontend builds successfully when native/nodejs is updated to v16. Unfortunately the navidrome executable fails to build (even with go downgraded to v1.16). Error is: scanner/metadata/taglib/taglib.go:22:15: undefined: Read

I also tried to build with make single. Therefore I had to install docker in docker and to patch the Makefile to run docker with sudo and to mount the host folder to /workdir for goreleaser, but all cross compilation failed with unknown option -m64.

We could try to use the prebuilt binaries, but this might fail for incompatible clib.

EDIT; The build problems are based on CGO i.e. cross compilation of taglib wrapper (and yes, I included the cross/tablib dependency).

publicarray commented 2 years ago

@hgy59 Does it have to do with the older compiler in the DSM6.1 toolchain? I gave it a go: https://github.com/publicarray/spksrc/runs/4726678383?check_suite_focus=true note armv7-7.0 build successfully