Closed jmmk closed 9 months ago
When trying to run the example that includes the png image, I was getting several errors, e.g.
error: undefined reference to symbol _IMG_LoadBMP_RW
I was able to solve this by adding a line to my build.zig:
build.zig
exe.linkSystemLibrary("sdl2_image");
If I am not mistaken, that line is missing here: https://github.com/MasterQ32/SDL.zig/blob/master/build.zig#L414
Won't fix: See here (https://github.com/MasterQ32/SDL.zig/issues/47)
When trying to run the example that includes the png image, I was getting several errors, e.g.
I was able to solve this by adding a line to my
build.zig
:If I am not mistaken, that line is missing here: https://github.com/MasterQ32/SDL.zig/blob/master/build.zig#L414