fatal error: glib.h: No such file or directory

Asked by Tanmay Naik on 2013-09-08

I'm using Kali Linux. I'm new to linux. I tried to install grub customizer. But when I run cmake .&& make I get following error:

-- checking for module 'gtkmm-2.4'
-- package 'gtkmm-2.4' not found
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Desktop/grub-customizer-3.0.4
[ 1%] Building CXX object CMakeFiles/grub-customizer.dir/src/Model/DeviceMap.cpp.o
In file included from /root/Desktop/grub-customizer-3.0.4/src/Model/DeviceMap.h:23:0,
                 from /root/Desktop/grub-customizer-3.0.4/src/Model/DeviceMap.cpp:19:
/root/Desktop/grub-customizer-3.0.4/src/Model/../lib/regex.h:24:18: fatal error: glib.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/grub-customizer.dir/src/Model/DeviceMap.cpp.o] Error 1
make[1]: *** [CMakeFiles/grub-customizer.dir/all] Error 2
make: *** [all] Error 2

I looked up internet but couldn't solve it. Thanks in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
Grub Customizer Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Richter
Solved:
2013-09-08
Last query:
2013-09-08
Last reply:
2013-09-08

you have to install the gtkmm libraries. Please take a look at https://answers.launchpad.net/grub-customizer/+faq/1397

Tanmay Naik (tnaik96) said : #2

Thanks Daniel Richter, that solved my question.

Tanmay Naik (tnaik96) said : #3

Thanks a lot. Sorry for the trouble. I don't know I missed that single point.. Sorry and thanks.. (Y)

sahmada (cia-wash) said : #4

I tried to follow https://answers.launchpad.net/grub-customizer/+faq/1397 instructions to install gtkmm, but I couldn't!

I did this:

#apt-cache search gtkmm | less

I got this :

libatkmm-1.6-dbg - C++ wrappers for ATK accessibility toolkit (debug symbols)
eclipse-cdt-pkg-config - pkg-config support for Eclipse C/C++ development tools
libflowcanvas-dev - interactive widget for “boxes and lines” environments - header files
libflowcanvas5 - interactive widget for “boxes and lines” environments
gigedit - instrument editor for Gigasampler files
libgtkglextmm-x11-1.2-0 - C++ bindings for GtkGLExt (Shared libraries)
libgtkglextmm-x11-1.2-dev - C++ bindings for GtkGLExt (Development files)
libgtkglextmm-x11-1.2-doc - C++ bindings for GtkGLExt (Documentation)
gtkmm-documentation - Documentation of C++ wrappers for GLib/GTK+
libgtkmm-2.4-1c2a - C++ wrappers for GTK+ (shared libraries)
libgtkmm-2.4-dbg - C++ wrappers for GTK+ (debug symbols)
libgtkmm-2.4-dev - C++ wrappers for GTK+ (development files)
libgtkmm-2.4-doc - C++ wrappers for GTK+ (documentation)
libgtkmm-3.0-1 - C++ wrappers for GTK+ (shared libraries)
libgtkmm-3.0-dbg - C++ wrappers for GTK+ (debug symbols)
libgtkmm-3.0-dev - C++ wrappers for GTK+ (development files)
libgtkmm-3.0-doc - C++ wrappers for GTK+ (documentation)
libgtksourceviewmm-3.0-0 - C++ binding of GtkSourceView
libgtksourceviewmm-3.0-dbg - C++ binding of GtkSourceView - debugging symbols
libgtksourceviewmm-3.0-dev - C++ binding of GtkSourceView - development files
libgtksourceviewmm-3.0-doc - C++ binding of GtkSourceView
libview-dev - VMware's Incredibly Exciting Widgets
libview2 - VMware's Incredibly Exciting Widgets
libview2-dbg - VMware's Incredibly Exciting Widgets
lostirc - simple gtk-based IRC client
libpangomm-1.4-1 - C++ Wrapper for pango (shared libraries)
libpangomm-1.4-dbg - C++ Wrapper for pango (debugging symbols)
libpangomm-1.4-dev - C++ Wrapper for pango (development files)
libpangomm-1.4-doc - C++ Wrapper for pango (documentation)
pdfchain - graphical user interface for the PDF Tool Kit
libplotmm-dbg - GTKmm plot widgets - debugging symbols
libplotmm-dev - Headers for developing programs that will use plotmm
libplotmm-doc - Plotmm documentation
libplotmm0 - GTKmm plot widgets for scientific applications
plotmm-examples - GTKmm plot widgets - sample applications

So what should I install exactly?

@sahmada (cia-wash)

You can either use a graphical package manager or you run sudo apt-get install libgtkmm-3.0-dev (and do the same for the other packages you need).