odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
7k stars 620 forks source link

Raylib appears to be missing arm64 linux support out of the box #4378

Open mboros1 opened 1 month ago

mboros1 commented 1 month ago

Context

The checked in shared libraries under vendor/raylib/linux only support amd64 architecture

Expected Behavior

raylib example should just work on arm64 linux in the same way it does for other supported platforms

Current Behavior

When trying to run the raylib example get a linker error because libraylib.a is compiled for x86_64

Failure Information (for bugs)

/usr/bin/ld: skipping incompatible ///home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a when searching for -l:/home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a /usr/bin/ld: skipping incompatible ///home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a when searching for -l:/home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a /usr/bin/ld: cannot find -l:/home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a: No such file or directory /usr/bin/ld: skipping incompatible ///home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a when searching for -l:/home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a /usr/bin/ld: skipping incompatible ///home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a when searching for -l:/home/martinboros/git/Odin/vendor/raylib/linux/libraylib.a clang: error: linker command failed with exit code 1 (use -v to see invocation)

mboros1 commented 1 month ago

I compiled raylib and replaced it in the linux directory and it worked. Trying to compile libraygui statically but I can't get it to work because it would require statically compiled libGL, which I am not able to get to work using mesa. Any hints on how you guys statically compile libraygui for linux?