Elektrine lite

← Feed

@SonnyBonds@mastodon.gamedev.place

Post #655490

2026-03-08 10:33 UTC

Ok, a Zig follow up... I managed to get the headers included properly, but now I'm having trouble passing a prebuilt library on. I've seen suggestions that it can be added as an object file with e.g: lib.addObjectFile(wgpu_lib.path("lib/libwgpu_native.a")); This does seems to kind of repack it into a new library, of which Zig itself is saying "not an ELF file" when I try to use it. ("file" and "readelf" say that it _is_ and ELF, but it's different from the original lib.) >> #zig #ziglang

Replies (1)

  • Ideally I'd just export the existing library as is to be linked in downstream projects with linkLibrary, but I'm not sure this is possible? Feels like it should be.

    Open ##1215523