Why Nostr? What is Njump?
2023-06-18 06:48:30

Aaron Giles on Nostr: Thought cross-compiling for ARM on Linux would be easier than the other two ...

Thought cross-compiling for ARM on Linux would be easier than the other two platforms, but it seems to be harder, actually.

On Windows I just needed to change the path to the compiler and linker to the ARM64 ones and things work out.

On the Mac, fat binary support is kind of baked in, so cross compiling x64 on an ARM64 host worked pretty easily.

But on Linux I'm a bit confused how to build for arm64 on an x64 host. I am able to run WSL on my Windows ARM machine and build an ARM64 version that way, but it sure would be convenient to just build both targets on x64. But things like sdl2-config (which provides paths to includes/libs) seem rather host-dependent, so figuring out how to do it properly appears fairly complicated.
Author Public Key
npub1kfka8atu26kkeld7d7d7we4n7cndvmh99da6y9d3eq9lvkqapges3rrt7k