I am trying to make autocompletion using Gtk.SourceView. I added --pkg gtksourceview-3.0 in the makefile. Now when I try to make, it gives fatal error: gtksourceview/gtksource.h: No such file or directory
error while compiling: gtksourceview/gtksource.h: No such file or directory
1.4k views Asked by user2716394 At
2
Valac (or better gcc) search (by default) header files in /usr/include and /usr/local/include/. Maybe apt-get did not copy these files in /usr/include/.
So:
1.Open gtksourceview-3.0 package (default path of vapi files is /usr/share/vala/vapi or /usr/share/vala-0.20/vapi)
2.Checks [cheader_filename]: if it is something like:
then valac tries to use /usr/include/gtksourceview/gtksource.h or /usr/local/include/gtksourceview/gtksource.h
3.Check if /usr/include/gtksourceview contains gtksource.h
4.If not, search your gtksource.h: we suppose that is in /usr/include. Then create a symbolic link:
# ln -sf /usr/include/gtksource.h /usr/include/gtksourceview/gtksource.h