kevinw / raylib-odin

Odin bindings for the raylib gamedev library
The Unlicense
36 stars 3 forks source link

Running On Linux #4

Closed joshayres closed 1 month ago

joshayres commented 5 years ago

When trying to run on Linux the example programs fail to build because the linker is failing to find raylib.lib. Here are the exact errors called:

/usr/bin/ld: cannot find -l/home/batman/dev/raylib-odin/lib/raylib.lib
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)

I am not knowledgeable about Odin to try and fix this myself. Any help is greatly appreciated.

ustance commented 5 years ago

Had the same problem. I made it work by installing raylib from repository and changing raylib_binding import to system:raylib

Not the best solution, but you can get something working with it.

alstrup commented 6 months ago

When I try that syntax, I get this now: Syntax Error: The library collection 'system' is restrict for 'foreign_library' Any ideas?

kevinw commented 6 months ago

The syntax for importing libraries has changed recently--check CHANGELOG.txt in the Jai compiler! I don't have time currently to keep this project up to date, but I'm happy to accept pull requests for fixes.

a-y-u-s-h commented 1 month ago

Any solutions to this yet?

kevinw commented 1 month ago

@a-y-u-s-h this repo is now being updated here IMO https://github.com/ftommasi/raylib-odin