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
I'm trying to build the Tetris example on Windows. The dependencies (libpng, libepoxy, glfw, etc) are not installed globally on my box, nor do I want them to be.
Should I be modifying build.zig to include the library and header paths? That doesn't seem optimal (unless the tetris project gets modified to include the headers/libs for those inside the project dir, in which case that should be an upstream modification).
Normally you can add additional compiler flags in a build system, but I'm not seeing anything like that in Zig Build. I see -isystem on the compiler itself, but not a way to pass that flag on to it from zig build.
This seems like something that could also be "solved" by a package manager, but we're talking about generic C toolchain compatibility here, so I still think it would be important to support this mode, too.
Sorry if this is an existing ticket. Couldn't find one after like 15 minutes of looking :)
Edit: Seems like there's a lot of related conversation here: #2041
The text was updated successfully, but these errors were encountered:
I'm trying to build the Tetris example on Windows. The dependencies (libpng, libepoxy, glfw, etc) are not installed globally on my box, nor do I want them to be.
The honest answer here is to sit tight until the package manager (#943) is available.
I see that you mentioned this:
This seems like something that could also be "solved" by a package manager, but we're talking about generic C toolchain compatibility here, so I still think it would be important to support this mode, too.
I'm trying to build the Tetris example on Windows. The dependencies (libpng, libepoxy, glfw, etc) are not installed globally on my box, nor do I want them to be.
Should I be modifying build.zig to include the library and header paths? That doesn't seem optimal (unless the tetris project gets modified to include the headers/libs for those inside the project dir, in which case that should be an upstream modification).
Normally you can add additional compiler flags in a build system, but I'm not seeing anything like that in Zig Build. I see
-isystem
on the compiler itself, but not a way to pass that flag on to it from zig build.This seems like something that could also be "solved" by a package manager, but we're talking about generic C toolchain compatibility here, so I still think it would be important to support this mode, too.
Sorry if this is an existing ticket. Couldn't find one after like 15 minutes of looking :)
Edit: Seems like there's a lot of related conversation here: #2041
The text was updated successfully, but these errors were encountered: