Hi @brocaar and everyone,
I tried building the binaries on an m2 mac. Tried nix-shell as well as make docker-devshell. I was successful at building the UI then successful at ‘make dev-dependencies’ from the devshell. I’m not able to make debug-amd64, etc however. Tried this from both nix-shell and devshell and always get the following error. I was able to add jq by starting ‘nix-shell -p jq’, however not recognizing ‘cross’ is something I haven’t been able to resolve after searching for possible solutions.
sh: line 1: jq: command not found
cross build --target x86_64-unknown-linux-musl
make: cross: No such file or directory
make: *** [Makefile:6: debug-amd64] Error 127
I wonder if you’d have a clue as to how to proceed.
Thanks, Peter
I actually got further than the previous post.
I realized that jq was just for parsing the version from json and I could just enter the result.
The cross command I was able to fix by specifying the full path to it.
Since on the mac natively I always get an error ld: library not found for -liconv which I have not been able to fix I switched to Ubuntu in UTM on the mac.
There I got the error
ERROR: failed to solve: ghcr.io/cross-rs/x86_64-unknown-linux-musl:latest: no match for platform in manifest
After reading further I added the platform specification in the Dockerfile
FROM --platform=“linux/amd64” ghcr.io/cross-rs/x86_64-unknown-linux-musl:latest
Now the error is that it probably is unable to run the image.