Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error: libgtk3 not found error even though gtk is installed #120

Open
shomeAvataar opened this issue Sep 5, 2023 · 1 comment

Comments

@shomeAvataar
Copy link

While building xatlas, I am getting the gtk not found error even though I have libgtk-3-dev installed. My gtk.h is at /usr/include/gtk-3.0/gtk/gtk.h. I think it is an issue with the premake script.

OS: ubuntu 20.04

==== Building imgui (release_x86_64) ====
==== Building mimalloc (release_x86_64) ====
==== Building nativefiledialog (release_x86_64) ====
nfd_gtk.c
../../source/thirdparty/nativefiledialog/nfd_gtk.c:10:10: fatal error: gtk/gtk.h: No such file or directory
   10 | #include <gtk/gtk.h>
      |          ^~~~~~~~~~~
compilation terminated.
make[1]: *** [nativefiledialog.make:187: obj/x86_64/Release/nativefiledialog/nfd_gtk.o] Error 1
make: *** [Makefile:211: nativefiledialog] Error 2
@shomeAvataar
Copy link
Author

premake.lua line 424 needs to be modified to buildoptions(os.outputof("pkg-config --cflags --libs gtk+-3.0"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant