Closed kdchambers closed 1 year ago
Thank you for the issue! I don't currently have a Linux machine for testing so this is really helpful. I wish I could get by without the user to have to have anything outside of what zig-gamedev requires.
Well, I guess the solution is to add the GTK headers to https://github.com/foxnne/nfd-zig so it can build. It will still need to link to GTK at runtime but that shouldn't be an issue for most people. I can look into it this week and submit a PR if you're happy with that.
That would be amazing but if you don't want to and think it's better to require the user to install it, I can just document it.
Keeping the requirement to install gtk+3-devel (Or equivalent) seems to be the best option sadly.
I wrote the necessary c definitions so that gtk.h could be removed, but it still doesn't compile because it can't find libgtk+3.so to link to. I'm not completely sure how the whole system is supposed to work, because I have libgtk+3.so.0 installed on my system, but it doesn't match due to the version suffix. If I just symlink libgtk+3.so.0 => libgtk+3.so it works fine, but that's obviously not a good solution.
I think the only thing the devel package is doing to allow it to link, is adding definitions for pkg-config to use to find the correct file.
Anyways, seems like it's doable, but probably not worth the effort.
Understood, thanks so much for looking into this! I'll get a note added to the readme for Linux users.
When trying to run the project I get the following error:
Maybe you can add gtk-3 requirement in README?