You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running MacOS on Intel and getting the following error when I try to compile with targets: aarch64-unknown-linux-gnu, i686-unknown-linux-gnu and x86_64-unknown-linux-gnu.
Unfortunately, cargo is not smart like zig, and does not support cross-compilation of executables out of the box. You have to manually configure a C cross-linker and create and configure a sysroot with Linux's glibc and other C libraries. This is a general design issue with cargo build, not cargo deb.
This is very fiddly and annoying to do on macOS, so I suggest compiling Linux executables in Docker instead.
I'm running MacOS on Intel and getting the following error when I try to compile with targets:
aarch64-unknown-linux-gnu
,i686-unknown-linux-gnu
andx86_64-unknown-linux-gnu
.The text was updated successfully, but these errors were encountered: