Errors trying to use gtk on C
What libraries are missing i installed everything .
Help please
What libraries are missing i installed everything .
Help please
Last edited:
main.c:1:10: fatal error: gtk/gtk.h: No such file or directoryIt would help if you post the error messages.
Usinggtk/gtk.h: No such file or directory
find / iname gtk.h
found /usr/local/include/gtk-3.0/gtk/gtk.h here. Do you have such a file and is it included in your search path for header files?# For GTK 2.x
$ pkg-config --cflags gtk+-2.0
# For GTK 3.x
$ pkg-config --cflags gtk+-3.0
$ cc `pkg-config --cflags gtk+-2.0` main.c
$ pkg-config --libs gtk+-2.0
i have it /usr/local/include/gtk-3.0/gtk/gtk.h:30:10: fatal error: gdk/gdk.h: No such file or directoryUsingfind / iname gtk.h
found /usr/local/include/gtk-3.0/gtk/gtk.h here. Do you have such a file and is it included in your search path for header files?
First it was about gtk, now gdk? Looks like progress, gtk.h wants to include gdk.h which comes with gtk3 too. Same thing, see if the file is installed and check if it is in your include path.fatal error: gdk/gdk.h: No such file or directory
Yes i had stuck on gdk didn't mention it.First it was about gtk, now gdk? Looks like progress, gtk.h wants to include gdk.h which comes with gtk3 too. Same thing, see if the file is installed and check if it is in your include path.
$ pkg-config --cflags gtk+-3.0
-I/usr/local/include/gtk-3.0 -I/usr/local/include/at-spi2-atk/2.0 -I/usr/local/includ
e/at-spi-2.0 -I/usr/X11R6/include -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus
-1.0/include -I/usr/local/include -I/usr/local/include/gio-unix-2.0 -I/usr/local/incl
ude/cairo -I/usr/X11R6/include/libdrm -I/usr/local/include/pango-1.0 -I/usr/local/inc
lude/fribidi -I/usr/local/include/harfbuzz -I/usr/local/include/atk-1.0 -I/usr/X11R6/
include/pixman-1 -I/usr/X11R6/include/freetype2 -I/usr/local/include/libpng16 -I/usr/
local/include/gdk-pixbuf-2.0 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/
glib-2.0/include
Please show how you invoke the compiler / linker.I tried all these already nothing works and the pkg-config without any luck
Seeing the command line for the failed compilation would help. If you are using pkgconf(1) or pkg-config(1), it should just work whether you're using clang or gcc.
If you're using shells/fish, programs like pkg-config have issues because they expect a shell that splits arguments on any form of whitespace, but fish does not do that. See the Command Substitution section of the Fish Tutorial for more information. Fish is the only shell that I've seen with this sort of issue, but there may be other shells with similar behavior, so you might need to adjust the pkg-config command substitution to work with your particular shell.
Does that mean the problem is solved?
I have a problem with virtualbox on plasma it gives me a 5k resolution and black desktop and no panel when i switch to 1080p it displays the desktop correctly why it does that ?Does that mean the problem is solved?