raylib-odin icon indicating copy to clipboard operation
raylib-odin copied to clipboard

Running On Linux

Open joshayres opened this issue 5 years ago • 3 comments

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.

joshayres avatar Jun 08 '19 16:06 joshayres

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.

ustance avatar Jun 09 '19 11:06 ustance

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

alstrup avatar Jan 30 '24 01:01 alstrup

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.

kevinw avatar Jan 30 '24 19:01 kevinw

Any solutions to this yet?

a-y-u-s-h avatar Jun 23 '24 18:06 a-y-u-s-h

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

kevinw avatar Jul 17 '24 17:07 kevinw