View Full Version : glib.h Make error --- ompiling ZLGtkTime.o ...ZLGtkTime.cpp:20:18: fatal error: glib.

January 30th, 2015, 07:35 AM
Compiling fbreader open source
when i type make command it gives an error like fatal error: glib.h: No such file or directory
i searched it on the internet then i came to the following solution.

I added the output of pkg-config --cflags glib-2.0 to the root make file like this --> GCC = -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -lglib-2.0 but still the error occurs.
please tell me where i am lacking. ?

January 30th, 2015, 08:57 AM
This will install build-dependencies (https://www.debian.org/doc/debian-policy/ch-relationships.html#s-sourcebinarydeps) of fbreader, among them libgtk2.0-dev and libglib2.0-dev:

sudo apt-get build-dep fbreader

January 31st, 2015, 06:23 AM
Thank you.. i solved it :)