You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build on Arch Linux 5.16.8 I get this:
ld.lld: error: undefined symbol: IMG_Init
Adding this line to Sdk.zig seems to fix the problem:
// . . .
} else {
// on linux, we should rely on the system libraries to "just work"exe.linkSystemLibrary("sdl2");
exe.linkSystemLibrary("sdl2_image"); // <--
}
// . . .
Largely unfamiliar with the zig build system, so I might be doing something wrong.
The text was updated successfully, but these errors were encountered:
This is only right if you intend to link sdl2_image. Which is not that often the case. So this would require some kind of additional function in the Sdk.zig instead of adding it to a function that only links SDL2
When attempting to build on Arch Linux 5.16.8 I get this:
Adding this line to Sdk.zig seems to fix the problem:
Largely unfamiliar with the zig build system, so I might be doing something wrong.
The text was updated successfully, but these errors were encountered: