PCMan / gtk3-nocsd

A hack to disable gtk+ 3 client side decoration
GNU Lesser General Public License v2.1
320 stars 41 forks source link

Cannot compile in Ubuntu 15.10 #15

Closed andrewhuang closed 8 years ago

andrewhuang commented 8 years ago

I'm running a minimal install of Ubuntu (installed the base system + other packges myself), and am trying to compile gtk3-nocsd from source. Here's the issue I'm running into:

~/repos/gtk3-nocsd$ sudo apt-get install gobject-introspection libgtk-3-dev pkg-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gobject-introspection is already the newest version.
libgtk-3-dev is already the newest version.
pkg-config is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
~/repos/gtk3-nocsd$ make
Package gobject-introspection-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-introspection-1.0' found
cc  -O2 -g -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/mirclient -I/usr/include/mircommon -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -Wall -fPIC -o gtk3-nocsd.o -c gtk3-nocsd.c
gtk3-nocsd.c:37:20: fatal error: girffi.h: No such file or directory
compilation terminated.
Makefile:23: recipe for target 'gtk3-nocsd.o' failed
make: *** [gtk3-nocsd.o] Error 1
~/repos/gtk3-nocsd$ 

I've tried searching for the errors and the library that it's missing, but I haven't found any posts with a similiar issue. Moreover, it seems like it there might be a versioning problem, as I can't find gobject-introspection-1.0.pc:

/usr$ find . -iname "*gobject*pc"
find: `./share/doc/google-chrome-stable': Permission denied
./lib/x86_64-linux-gnu/pkgconfig/cairo-gobject.pc
./lib/x86_64-linux-gnu/pkgconfig/harfbuzz-gobject.pc
./lib/x86_64-linux-gnu/pkgconfig/gobject-2.0.pc
/usr$ 

Thanks in advance.

chris-se commented 8 years ago

You need to also install the libgirepository1.0-dev package (that contains the gobject-introspection-1.0.pc pkg-config file).

andrewhuang commented 8 years ago

Compiles now. Thanks! Would you accept a PR adding this to the documentation?

chris-se commented 8 years ago

I just noticed that there's already a pull request for README.md open, which I'll merge soon - but thanks a lot for the offer. Since your problem is solved, I'm closing this report.