gio.h not found

Asked by aurora5161

I install the required lib ( libglib2.0-dev libgtk2.0-dev libgconf2-dev libgstreamer0.10-dev gnome-icon-theme libnotify-dev libxml2-dev libunique-dev libappindicator-dev) on ubuntu before configure, when I make , I get below error:

In file included from /usr/include/gtk-2.0/gdk/gdk.h:32:0,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from alarm-applet.h:32,
                 from alarm-applet.c:26:
/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30:21: fatal error: gio/gio.h: No such file or directory
 #include <gio/gio.h>
                     ^
compilation terminated.
make[3]: *** [alarm-applet.o] Error 1
make[3]: Leaving directory `/home/luop/Downloads/alarm/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/luop/Downloads/alarm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/luop/Downloads/alarm'
make: *** [all] Error 2

could anybody do me a favor, Thank you very much!

Question information

Language:
English Edit question
Status:
Solved
For:
Alarm Clock Applet Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

According to http://packages.ubuntu.com/search?searchon=contents&keywords=gio%2Fgio.h&mode=&suite=xenial&arch=any it should be provided by libglib2.0-dev

What is the output of the commands

uname -a
lsb_release -crid
ls -l /usr/include/glib-2.0/gio/gio.h
dpkg -l libglib2.0-dev

Revision history for this message
aurora5161 (565056427-r) said :
#2

Dear Hampl, Thank you very much for your answer, when I enter the commands you give me ,I get below answers:

luop1@luop1-ThinkPad-X200:~/Downloads/alarm-clock-applet-0.3.4$ uname -a
Linux luop1-ThinkPad-X200 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:27 UTC 2016 i686 i686 i686 GNU/Linux

luop1@luop1-ThinkPad-X200:~/Downloads/alarm-clock-applet-0.3.4$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty

luop1@luop1-ThinkPad-X200:~/Downloads/alarm-clock-applet-0.3.4$ ls -l /usr/include/glib-2.0/gio/gio.h
ls: cannot access /usr/include/glib-2.0/gio/gio.h: No such file or directory

luop1@luop1-ThinkPad-X200:~/Downloads/alarm-clock-applet-0.3.4$ dpkg -l libglib2.0-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================-==================-==================-============================================================
ii libglib2.0-dev 2.40.2-0ubuntu1 i386 Development files for the GLib library
luop1@luop1-ThinkPad-X200:~/Downloads/alarm-clock-applet-0.3.4$

I can run the alarm-clock-applet through apt-get ,but couldn't run it through the resource

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

Try the commands

sudo apt-get install --reinstall libglib2.0-dev
ls -l /usr/include/glib-2.0/gio/gio.h

and report the results.

Revision history for this message
aurora5161 (565056427-r) said :
#4

Thanks Manfred Hampl, that solved my question.

Revision history for this message
aurora5161 (565056427-r) said :
#5

Dear Hampl, Thank you very much, when I enter "sudo apt-get install --reinstall libglib2.0-dev" and "ls -l /usr/include/glib-2.0/gio/gio.h" I get below information :

-rw-r--r-- 1 root root 5307 9月 26 2014 /usr/include/glib-2.0/gio/gio.h

and the problem is solved, Thank you very much again! ^_^