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.
Published at
2023-06-18 06:48:30Event JSON
{
"id": "28b86dd6e0aa4aa7725b53095fc52b0106ab00e9d5c5fa1a585cd45c5eac0dde",
"pubkey": "b26dd3f57c56ad6cfdbe6f9be766b3f626d66ee52b7ba215b1c80bf6581d0a33",
"created_at": 1687070910,
"kind": 1,
"tags": [
[
"mostr",
"https://corteximplant.com/users/aaronsgiles/statuses/110563879169685131"
]
],
"content": "Thought cross-compiling for ARM on Linux would be easier than the other two platforms, but it seems to be harder, actually.\n\nOn Windows I just needed to change the path to the compiler and linker to the ARM64 ones and things work out.\n\nOn the Mac, fat binary support is kind of baked in, so cross compiling x64 on an ARM64 host worked pretty easily.\n\nBut 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.",
"sig": "af1837013d154580f5000904bdece4ad92e54b5359a6783aeace59dd67da8f75b5e76bdafda72e2f24cc51951982151e4147ecb0eadb1c2cd380eaba776098cb"
}