Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gio/gio.h fatal error #52

Open
wicadmin opened this issue Sep 2, 2016 · 4 comments
Open

gio/gio.h fatal error #52

wicadmin opened this issue Sep 2, 2016 · 4 comments

Comments

@wicadmin
Copy link

wicadmin commented Sep 2, 2016

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
Copy link

dadrox commented Nov 20, 2016

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

@big-o
Copy link

big-o commented Jul 1, 2017

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants