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

Linker not finding rlgl on Linux (Arch) -- Raylib Shared Library building. #4688

Open
dmsun opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@dmsun
Copy link

dmsun commented Jan 13, 2025

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Linker does not currently look into the right folder when building Raylib as a shared library.

Useful information to add to a bug report:

    Odin:    dev-2025-01:7be003557
    OS:      Arch Linux, Linux 6.6.69-1-lts
    CPU:     AMD Ryzen 5 7600X 6-Core Processor             
    RAM:     31232 MiB
    Backend: LLVM 19.1.6

Expected Behavior

Link correctly to rlgl in /usr/lib/odin/vendor/raylib/rlgl

Current Behavior

Build fails

Failure Information (for bugs)

/usr/bin/ld: cannot find -l:/usr/lib/odin/vendor/raylib/rlgl//../linux/libraylib.so.500: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Steps to Reproduce

odin file:

package main

import rl "vendor:raylib"
import rlgl "vendor:raylib/rlgl"

main :: proc () {
// do something with rlgl
rlgl.DrawRenderBatchActive()
rlgl.DisableBackfaceCulling()
}

odin build . -define:RAYLIB_SHARED=true -build-mode:dll

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