Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mboros1 opened this issue Oct 14, 2024 · 1 comment
Open

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

mboros1 opened this issue Oct 14, 2024 · 1 comment

Comments

@mboros1
Copy link

mboros1 commented Oct 14, 2024

Context

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

  • Operating System & Odin Version:

      Odin:    dev-2024-10:417e9bb37
      OS:      Fedora Linux Asahi Remix 40 (KDE Plasma), Linux 6.11.0-400.asahi.fc40.aarch64+16k
      CPU:     ARM64
      RAM:     31596 MiB
      Backend: LLVM 18.1.8
    

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
Copy link
Author

mboros1 commented Oct 17, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant