Comments (2)
A couple of things I learnt looking into ld
:
- If you switch the
-l/home/joakin/dev/forks/Odin/vendor/raylib/linux/libraylib.so.5.0.0
for-l:/home/joakin/dev/forks/Odin/vendor/raylib/linux/libraylib.so.5.0.0
with the colon, it seems to link fine - Another way is to add the folder with
-L
and then the lib name separately with-l
, like so:-L/home/joakin/dev/forks/Odin/vendor/raylib/linux -lraylib
which also compiles fine if you remove the original-l
argument that was failing
Poking I've found some logic here:
Lines 406 to 422 in 4c35633
Where it seems like it is checking for .so
extension for dynamic libraries at the end of the file name, while the raylib library ends with the version number instead libraylib.so.5.0.0
.
If this is the issue I'm not sure if changing the name of the dyn library or the logic for that check would be the way to go.
from odin.
From discord
laytan — Today at 1:32 PM
So the fix is probably checking for the version thingy after the .so too
in our linker code
from odin.
Related Issues (20)
- `linux.ptrace(linux.PTRACE_CONT, ...)` returns `EIO` every time HOT 3
- `wgpu` vendor library fails on windows due to linking error HOT 1
- `core:os` package `read_entire_file_xxx` procedures don't work on `/proc` filesystem even if on a Linux system HOT 3
- os2.process_start uses the global allocator instead of `context.allocator` which can lead to a panic/failed assert HOT 4
- Globally defined simd.f32x16 causes compiler crash
- Inconsistent array mathematics for enumerated arrays
- Cannot use hash library within a library function HOT 2
- Unable to seemingly perform arithmetic operations on polymorphic variables
- LLVM code gen failed duo to #soa dynamic array element getting cleared with {}
- Comma between params isnt needed for two param proc HOT 1
- panic: quaternion64 + quaternion64
- Unresolved external symbol when linking with a dll (created with odin)
- Matrix gives llvm error when accessed with non-64-bit int HOT 2
- Segfault when calling out to C from a parapoly context HOT 1
- core:image can't load png HOT 5
- Getting 'Segmentation fault', 'Bus error' and 'Illegal instruction'
- Allow swizzle field names in array initialization
- Procedure returning generic enumerated array doesn't compile
- Odin fails to compile on MacOS Sequoia (15.0) using Intel chip
- LLVM panic at compilation when parapoly type is incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odin.