poliva / lightum

MacBook automatic light sensor daemon
GNU General Public License v2.0
96 stars 29 forks source link

gio/gio.h fatal error #52

Open wicadmin opened 7 years ago

wicadmin commented 7 years ago

running make, I'm getting:

lightum:h:2:21: fatal_error: gio/gio.h: No such file or directory

however, /usr/include/glib-2.0/gio/gio.h is there

dadrox commented 7 years ago

I had the same issue. Installing libsystemd-dev fixed it.

big-o commented 7 years ago

I have the same issue installing on xubuntu 16.04; libsystemd-dev is installed but still doesn't fix it:

$ make
cc `pkg-config --cflags dbus-1 --cflags glib-2.0 --cflags gio-2.0 --cflags libsystemd-login` -Wall -Wextra -Wwrite-strings -g -O2   -c -o functions.o functions.c
Package libsystemd-login was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd-login.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd-login' found
In file included from functions.c:23:0:
lightum.h:2:21: fatal error: gio/gio.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'functions.o' failed
make: *** [functions.o] Error 1
tourdedave commented 6 years ago

Looks like this lib needs to be updated to reference libsystemd instead of libsystemd-login (per this bug report).

Quick fix is to update the Makefile on your machine. Look for any reference to libsystemd-login and replace it with libsystemd. There should only be two references. After that, you should be able to run make.

FriendChi commented 2 months ago

I have the same issue,libsystemd-dev is installed but still doesn't fix it