Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Installation problems | Problèmes à l'installation redhat - install failure: error: gio/gdesktopappinfo.h: No such file or directory
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
[Locked] redhat - install failure: error: gio/gdesktopappinfo.h: No such file or directory
Guest English 16 Guest [Read]
13 August 2013 à 17:47

Guest, Monday 27 May 2013 à 16:36

trying to install cairo-dock-3.2.1 and cairo-dock-plugins-3.2.1, cairo-dock-3.2.1 build fine, but build of cairo-dock-plugins hit below errors:

/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:24:33: error: gio/gdesktopappinfo.h: No such file or directory
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c: In function ‘_launch_from_file’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: ‘GDesktopAppInfo’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: (Each undeclared identifier is reported only once
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: for each function it appears in.)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: ‘ai’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: warning: implicit declaration of function ‘g_desktop_app_info_new_from_filename’
make[2]: * [GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-util.c.o] Error 1
make[1]:
* [GMenu-old/src/CMakeFiles/cd-GMenu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

i'm using redhat linux 2.6.32-358.0.1.el6.x86_64, gnome terminal.

any one can advise how to fix this? thanks a lot!

matttbe, Monday 27 May 2013 à 16:40


Subscription date : 24 January 2009
Messages : 12573
Hello and thank you for this bug report,

Is it possible to give us more details about this compilation? What was the output messages produced by 'cmake' command?
Also, what's your version of Gio (libgio or libglib)?

Guest, Monday 27 May 2013 à 16:57

Thanks for your reply.

[xxx@oc6058557764 build]$ pkg-config --cflags gio-unix-2.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include


so gio is 2.0 I guess.

cmake log:
[xxx@oc6058557764 build]$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr

-- =====================
-- Check dependencies...
-- =====================

-- checking for module 'gldi'
-- found gldi, version 3.2.1
-- checking for module 'glib-2.0'
-- found glib-2.0, version 2.22.5
-- > Static Libraries:
-- > GVFS-Integration:
-- checking for module 'gio-2.0'
-- found gio-2.0, version 2.22.5
-- > Indicator-Applet:
-- checking for module 'dbusmenu-glib-0.4'
-- package 'dbusmenu-glib-0.4' not found
-- checking for module 'dbusmenu-glib'
-- package 'dbusmenu-glib' not found
-- checking for module 'dbusmenu-gtk-0.4'
-- package 'dbusmenu-gtk-0.4' not found
-- checking for module 'dbusmenu-gtk'
-- package 'dbusmenu-gtk' not found
-- checking for module 'indicator-0.4'
-- package 'indicator-0.4' not found
-- checking for module 'indicator'
-- package 'indicator' not found
-- checking for module 'libido-0.1'
-- package 'libido-0.1' not found
WARNINGThese modules are required to compile Indicators applet (MeMenu, Messaging-Menu, Sound-Control, Status-Notifier and Global-Menu): indicator(-0.4), libido-0.1, dbusmenu-glib(-0.4), dbusmenu-gtk(-0.4)
-- > Indicator Names:
-- > Distribution:
-- DISTRO_ID: RedHatEnterpriseWorkstation, DISTRO_RELEASE: 6.4
-- > Shared Libraries:
-- > AlsaMixer:
-- checking for module 'alsa'
-- found alsa, version 1.0.22
-- > Animated Icons:
-- > Cairo Penguin:
-- > Clipper:
-- > Clock:
-- checking for module 'libical'
-- found libical, version 0.43
-- > Composite Manager:
-- > DBus:
-- * Python:
-- Python Version: 2
-- Python executable program(s): /usr/bin/python ; PYTHON3_EXECUTABLE-NOTFOUND
-- * Ruby:
-- Ruby library dir:
-- Could not find ruby libs, won't install Ruby interface.
WARNINGThis program is required to compile DBus applet with Ruby interface: ruby
-- * Mono:
-- Could not find Mono compiler gmcs, won't build Mono interface.
-- * Vala:
-- Path to valac: VALAC_EXE-NOTFOUND
running cd "/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/Dbus/interfaces/python" && /usr/bin/python setup.py -q build 2>&1
running cd "/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/Dbus/interfaces/bash" && /usr/bin/python setup.py -q build 2>&1
-- > Desklet Rendering:
-- > Dialog Rendering:
-- > DND2Share:
-- > Dock Rendering:
-- > Drop Indicator:
-- > Dustbin:
-- > Folders:
-- > GMenu:
-- checking for module 'libgnome-menu-3.0'
-- package 'libgnome-menu-3.0' not found
-- Could not find libgnome-menu-3.0; trying with an old version...
-- checking for module 'libgnome-menu'
-- found libgnome-menu, version 2.28.0
-- > Gnome-Integration:
-- checking for module 'gio-2.0'
-- found gio-2.0, version 2.22.5
-- > Icon Effects:
-- > Impulse:
-- checking for module 'libpulse'
-- package 'libpulse' not found
-- checking for module 'fftw3'
-- package 'fftw3' not found
-- Could not find libpulse; Cairo-Dock won't be built with Impulse applet.
WARNINGThese modules are required to compile Impulse applet: libpulse (and fftw3 - optional)
-- > Illusion:
-- > KDE-Integration:
-- checking for module 'gio-2.0'
-- found gio-2.0, version 2.22.5
-- KDE_INTEGRATION_FOUND: 1
-- > Keyboard-Indicator:
-- checking for module 'libxklavier'
-- found libxklavier, version 4.0
-- > Logout:
-- checking for module 'upower-glib'
-- package 'upower-glib' not found
-- Could not find upower-glib; Logout and PowerManager plugin won't be built with UPower support.
WARNINGThis module is required to compile LogOut and PowerManager applet with UPower support: upower-glib
-- > Mail:
-- warning : Could not find libetpan; Cairo-Dock won't be built with Mail applet.
WARNINGThis module is required to compile Mail applet: libetpan
-- > Motion Blur:
-- > MusicPlayer:
-- > NetSpeed:
-- > PowerManager:
-- > Quick Browser:
-- > Recent-Events:
-- checking for module 'zeitgeist-1.0'
-- package 'zeitgeist-1.0' not found
-- Could not find libzeitgeist; Cairo-Dock won't be built with Zeitgeist support.
WARNINGThis module is required to compile Recent-Events applet: zeitgeist-1.0
-- > Remote Control:
-- > RSSreader:
-- > Screenshot:
-- > Shortcuts:
-- > ShowDesktop:
-- checking for module 'xrandr'
-- found xrandr, version 1.4.0
-- > Show Mouse:
-- > Slider:
-- checking for module 'libexif'
-- found libexif, version 0.6.21
-- checking for module 'alsa'
-- found alsa, version 1.0.22
-- > Sound-Effects:
-- > Stack:
-- > Status Notifier:
-- Could not find Status-Notifier libs; Cairo-Dock won't be built with Status-Notifier support.
WARNINGThis module is required to compile Status Notifier applet: dbusmenu-gtk(-0.4)
-- > Switcher:
-- > System Monitor:
-- Found Sensors: /usr/include
-- > Systray:
-- > Terminal:
-- checking for module 'vte'
-- package 'vte' not found
-- Could not find vte; Cairo-Dock won't be built with terminal applet.
WARNINGThis module is required to compile Terminal applet: vte
-- > Tomboy:
-- > Toons:
-- > Weather:
-- > Weblets:
-- checking for module 'webkit-1.0'
-- package 'webkit-1.0' not found
-- Could not find webkit-1.0; Cairo-Dock won't be built with Weblets applet.
WARNINGThis module is required to compile Weblets applet: webkit-1.0
-- > WiFi:
-- > XFCE-Integration:
-- checking for modules 'QUIET;thunar-vfs-1'
-- package 'QUIET' not found
-- package 'thunar-vfs-1' not found
-- checking for module 'gio-2.0'
-- found gio-2.0, version 2.22.5
-- GVFS found: source file applet-thunar-vfs.c NOT included for compilation.
-- > XGamma:
-- checking for modules 'x11;xxf86vm'
-- found x11, version 1.5.0
-- found xxf86vm, version 1.1.2

-- ===============
-- Language build:
-- ===============

-- Building fr.gmo...
-- Building de.gmo...
-- Building sk.gmo...
-- Building lt.gmo...
-- Building sr.gmo...
-- Building hr.gmo...
-- Building it.gmo...
-- Building zh_CN.gmo...
-- Building ru.gmo...
-- Building el.gmo...
-- Building cs.gmo...
-- Building uk.gmo...
-- Building en.gmo...
-- Building id.gmo...
-- Building pl.gmo...
-- Building ar.gmo...
-- Building nl.gmo...
-- Building sv.gmo...
-- Building pt.gmo...
-- Building zh_TW.gmo...
-- Building eu.gmo...
-- Building hu.gmo...
-- Building he.gmo...
-- Building ja.gmo...
-- Building et.gmo...
-- Building es.gmo...
-- Building tr.gmo...
-- Building sr@latin.gmo...
-- Building pt_BR.gmo...

-- ===============
-- Plug-ins build:
-- ===============

-- Stable:
-- Integration plug-ins:
-- - with Gnome support: yes
-- - with KDE support: yes
-- - with XFCE support: yes
-- Plug-ins:
-- - with Alsa-Mixer applet: yes
-- - with GMenu applet: yes (old version)
-- - with Impulse applet: no
-- - with Indicator-Generic applet: no
-- - with Keyboard-indicator applet: yes
-- - with Mail applet: no
-- - with Me-Menu applet applet: no
-- - with Messaging-Menu applet: no
-- - with Recent-Events applet: no
-- - with Sound Effects applet: yes
-- - with Status-Notifier applet: no
-- - with Terminal applet: no
-- - with Weblets applet: no
-- - with Xgamma applet: yes
-- Add On:
-- - with Sound-Menu support: no
-- - with Screen Resolution support: yes
-- - with Sensors support: yes
-- - with UPower support: no
-- - with iCal support: yes
-- - with Exif support: yes
-- Third Party Interfaces:
-- - with Python interface: yes
-- - with Ruby interface: no
-- - with Mono interface: no
-- - with Vala interface: no
-- - with Vala Translator (valac): no
-- Unstable:
-- - with Global-Menu applet: no
-- - with Disks applet: no
-- - with Doncky applet: no
-- - with KDE experimental support: no
-- - with Network-Monitor applet: no
-- - with Scooby-Do applet: no
-- Deprecated:
-- - with old Gnome support: no

-- WARNING: It seems that one (or more) module(s) is (are) missing: indicator(-0.4) (libido-0.1) dbusmenu-glib(-0.4) dbusmenu-gtk(-0.4) libpulse upower-glib zeitgeist-1.0 vte webkit-1.0
-- It can be interesting to install them (especially if you're a maintainer of Cairo-Dock's packages).

-- WARNING: It seems that one (or more) program(s) or package(s) is (are) missing: ruby libetpan-config
-- It can be interesting to install them (especially if you're a maintainer of Cairo-Dock's packages).

-- Configuring done
-- Generating done
-- Build files have been written to: /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build

fabounet, Monday 27 May 2013 à 17:43


Subscription date : 30 November 2007
Messages : 17118
found gio-2.0, version 2.22.5

so GIO is here, moreover g_desktop_app_info_new_from_keyfile is available from 2.18, so I think you should have gdesktopappinfo.h

matttbe, Monday 27 May 2013 à 19:12


Subscription date : 24 January 2009
Messages : 12573
Can you confirm gdesktopappinfo.h is available on your hard disk? (and where is it? It should be in /usr/include/gio-unix-2.0/gio/gdesktopappinfo.h)

If yes, can you recompile GMenu-old plugin with 'verbose' mode?
cd cairo-dock-plug-ins/build/GMenu-old/
make VERBOSE=1

Guest, Tuesday 28 May 2013 à 05:11

[xxx@oc6058557764 build]$ ls -l /usr/include/gio-unix-2.0/gio/gdesktopappinfo.h
-rw-r--r--. 1 root root 3874 Feb 3 2012 /usr/include/gio-unix-2.0/gio/gdesktopappinfo.h


[xxx@oc6058557764 GMenu-old]$ make VERBOSE=1
cd /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build && /usr/bin/cmake -H/home/xxx/Downloads/cairo-dock-plugins-3.2.1 -B/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build --check-build-system CMakeFiles/Makefile.cmake 0
cd /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build && /usr/bin/cmake -E cmake_progress_start /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/CMakeFiles /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/GMenu-old/CMakeFiles/progress.make
cd /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build && make -f CMakeFiles/Makefile2 GMenu-old/all
make[1]: Entering directory `/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build'
make -f GMenu-old/src/CMakeFiles/cd-GMenu.dir/build.make GMenu-old/src/CMakeFiles/cd-GMenu.dir/depend
make[2]: Entering directory `/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build'
cd /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/xxx/Downloads/cairo-dock-plugins-3.2.1 /home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/GMenu-old/src /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/GMenu-old/src/CMakeFiles/cd-GMenu.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build'
make -f GMenu-old/src/CMakeFiles/cd-GMenu.dir/build.make GMenu-old/src/CMakeFiles/cd-GMenu.dir/build
make[2]: Entering directory `/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build'
/usr/bin/cmake -E cmake_progress_report /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/CMakeFiles 39
[ 33%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-util.c.o
cd /home/xxx/Downloads/cairo-dock-plugins-3.2.1/build/GMenu-old/src && /usr/bin/gcc -Dcd_GMenu_EXPORTS -DGL_GLEXT_PROTOTYPES=\"1\" -DCAIRO_DOCK_FORCE_ICON_IN_MENUS=1 -DGTK_DISABLE_DEPRECATED=\"1\" -DMY_APPLET_SHARE_DATA_DIR=\"/usr/share/cairo-dock/plug-ins/GMenu\" -DMY_APPLET_PREVIEW_FILE=\"preview.jpg\" -DMY_APPLET_CONF_FILE=\"GMenu.conf\" -DMY_APPLET_USER_DATA_DIR=\"GMenu\" -DMY_APPLET_VERSION=\"1.1.11\" -DMY_APPLET_GETTEXT_DOMAIN=\"cairo-dock-plugins\" -DMY_APPLET_DOCK_VERSION=\"3.2.1\" -DMY_APPLET_ICON_FILE=\"icon.svg\" -DMY_APPLET_ICON_FILE=\"icon.svg\" -DHAVE_GIO=1 -fPIC -I/usr/include/cairo-dock -I/usr/include/cairo-dock/gldit -I/usr/include/cairo-dock/icon-factory -I/usr/include/cairo-dock/implementations -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/librsvg-2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libxml2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -I/usr/include/gnome-menus -std=c99 -Wall -o CMakeFiles/cd-GMenu.dir/applet-util.c.o -c /home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:24:33: error: gio/gdesktopappinfo.h: No such file or directory
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c: In function ‘_launch_from_file’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: ‘GDesktopAppInfo’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: (Each undeclared identifier is reported only once
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: for each function it appears in.)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: ‘ai’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: warning: implicit declaration of function ‘g_desktop_app_info_new_from_filename’
make[2]: *** [GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-util.c.o] Error 1
make[2]: Leaving directory `/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build'
make[1]: *** [GMenu-old/src/CMakeFiles/cd-GMenu.dir/all] Error 2
make[1]: Leaving directory `/home/xxx/Downloads/cairo-dock-plugins-3.2.1/build'
make: *** [all] Error 2


it looks like the build simply does not include gio path under /usr/include/gio-unix-2.0/gio/

matttbe, Tuesday 28 May 2013 à 10:45


Subscription date : 24 January 2009
Messages : 12573
Yes, this is strange... What's the output messages produced by these commands:
pkg-config --cflags gio-2.0
pkg-config --cflags gio-unix-2.0
pkg-config --cflags gtk+-2.0
gtk+-2.0 should include links to gio-unix-2.0.

Is it better is you modify the line 161 of the main CMakeLists.txt file:
pkg_check_modules ("LIBGIO" "gio-2.0")
by
pkg_check_modules ("LIBGIO" "gio-2.0 gio-unix-2.0")

Guest, Tuesday 28 May 2013 à 11:42

[xxx@oc6058557764 build]$ pkg-config --cflags gio-2.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
[xxx@oc6058557764 build]$ pkg-config --cflags gio-unix-2.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
[xxx@oc6058557764 build]$ pkg-config --cflags gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12


for some how, i did make clean then make again, it didn't enter GMenu-old anymore, and hit diff errors:

[ 40%] [ 40%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-fire.c.o
Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-notifications.c.o
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c: In function ‘_on_activate_entry’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:45: error: ‘GDesktopAppInfo’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:45: error: (Each undeclared identifier is reported only once
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:45: error: for each function it appears in.)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:45: error: ‘pAppInfo’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:45: warning: implicit declaration of function ‘gmenu_tree_entry_get_app_info’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c: In function ‘create_submenu_entry’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:178: warning: initialization from incompatible pointer type
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c: In function ‘create_menuitem’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:220: error: ‘GDesktopAppInfo’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:220: error: ‘pAppInfo’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:241: warning: assignment from incompatible pointer type
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c: In function ‘create_menuitem_from_alias’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:281: warning: implicit declaration of function ‘gmenu_tree_alias_get_aliased_item_type’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:287: warning: implicit declaration of function ‘gmenu_tree_alias_get_aliased_directory’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:287: warning: initialization makes pointer from integer without a cast
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:297: warning: implicit declaration of function ‘gmenu_tree_alias_get_aliased_entry’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:297: warning: initialization makes pointer from integer without a cast
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:300: warning: passing argument 2 of ‘create_menuitem’ makes pointer from integer without a cast
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:215: note: expected ‘struct GMenuTreeEntry *’ but argument is of type ‘int’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c: In function ‘cd_populate_menu_from_directory’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:313: error: ‘GMenuTreeIter’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:313: error: ‘iter’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:313: warning: implicit declaration of function ‘gmenu_tree_directory_iter’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:315: warning: implicit declaration of function ‘gmenu_tree_iter_next’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:322: warning: implicit declaration of function ‘gmenu_tree_iter_get_directory’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:327: warning: implicit declaration of function ‘gmenu_tree_iter_get_entry’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:336: warning: implicit declaration of function ‘gmenu_tree_iter_get_alias’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:341: warning: implicit declaration of function ‘gmenu_tree_iter_get_header’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:351: warning: implicit declaration of function ‘gmenu_tree_iter_unref’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c: In function ‘cd_load_tree_from_file’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:455: warning: implicit declaration of function ‘gmenu_tree_new’
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:455: warning: initialization makes pointer from integer without a cast
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu/src/applet-tree.c:456: warning: implicit declaration of function ‘gmenu_tree_load_sync’
make[2]: *** [GMenu/src/CMakeFiles/cd-GMenu.dir/applet-tree.c.o] Error 1
make[1]: *** [GMenu/src/CMakeFiles/cd-GMenu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

matttbe, Tuesday 28 May 2013 à 12:03


Subscription date : 24 January 2009
Messages : 12573
gtk+-2.0 doesn't include any links to gio-unix-2.0. Is it possible to report this bug to Redhat devs because it's the first time that this problem is reported...

@fabounet: or maybe should we add gio-unix-2.0 by security? Is it supported by *BSD too?

for some how, i did make clean then make again, it didn't enter GMenu-old anymore, and hit diff errors:
Is it possible to clean the build directory and re-try the full compilation
rm -rf cairo-dock-plug-ins/build/*
cd build/
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
because the main CMakeLists.txt file has been modified.

If you still have this problem, is it possible to post the output message produced by 'cmake' command?

PS: is it maybe possible to add all source code/log messages into [code](...)[/code] tags?

Guest, Tuesday 28 May 2013 à 14:05

did clean and make again:
[ 42%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-init.c.o
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:24:33: error: gio/gdesktopappinfo.h: No such file or directory
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c: In function ‘_launch_from_file’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: ‘GDesktopAppInfo’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: (Each undeclared identifier is reported only once
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: for each function it appears in.)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: error: ‘ai’ undeclared (first use in this function)
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-util.c:95: warning: implicit declaration of function ‘g_desktop_app_info_new_from_filename’
make[2]: *** [GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-util.c.o] Error 1
make[1]: *** [GMenu-old/src/CMakeFiles/cd-GMenu.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


so you still suggest report a bug to redhat? "gtk+-2.0 doesn't include any links to gio-unix-2.0" --- this bug?
can we include the gio path manualy to work around this?

matttbe, Tuesday 28 May 2013 à 15:20


Subscription date : 24 January 2009
Messages : 12573
so you still suggest report a bug to redhat? "gtk+-2.0 doesn't include any links to gio-unix-2.0" --- this bug?
Yes and you can add it seems gio-unix-2.0 is required by gtk+-2-0 on other distributions.

can we include the gio path manualy to work around this?
Yes but the "best" workaround is to add "gio-unix-2.0":
pkg_check_modules ("LIBGIO" "gio-2.0 gio-unix-2.0")
and recompile the dock after having cleaned the content of your build directory.

According to output messages produced by pkg-config --cflags gio-unix-2.0, it should automatically add -I/usr/include/gio-unix-2.0/ (make VERBOSE=1 should confirm that) but if you still have a problem (which is maybe related to another bug with pkg-config? Is it possible to have the output messages produced by the cmake command?), you can add /usr/include/gio-unix-2.0/ just before ${LIBGIO_PACKAGE_INCLUDE_DIRS}) in GMenu-old/src/CMakeLists.txt.

Guest, Tuesday 28 May 2013 à 18:28

I did include pkg_check_modules ("LIBGIO" "gio-2.0 gio-unix-2.0") and add /usr/include/gio-unix-2.0/ just before ${LIBGIO_PACKAGE_INCLUDE_DIRS}) in GMenu-old/src/CMakeLists.txt. then rm build/* and recompile, seems passed previous problem, hit below:

[ 35%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-init.c.o
[ 35%] Building C object dnd2share/src/CMakeFiles/cd-dnd2share.dir/applet-backend-videobin.c.o
[ 35%] Built target cd-dustbin
[ 36%] Building C object dnd2share/src/CMakeFiles/cd-dnd2share.dir/applet-backend-paste-ubuntu.c.o
[ 37%] Building C object Folders/src/CMakeFiles/cd-Folders.dir/applet-config.c.o
[ 37%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-config.c.o
Scanning dependencies of target cd_gnome-integration
[ 37%] Building C object dnd2share/src/CMakeFiles/cd-dnd2share.dir/applet-backend-pastebin-mozilla.c.o
[ 38%] Building C object gnome-integration/src/CMakeFiles/cd_gnome-integration.dir/applet-init.c.o
[ 38%] Building C object Folders/src/CMakeFiles/cd-Folders.dir/applet-load-icons.c.o
[ 38%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-notifications.c.o
[ 38%] Building C object gnome-integration/src/CMakeFiles/cd_gnome-integration.dir/applet-utils.c.o
[ 38%] Building C object dnd2share/src/CMakeFiles/cd-dnd2share.dir/applet-backend-codepad.c.o
[ 38%] Building C object Folders/src/CMakeFiles/cd-Folders.dir/applet-notifications.c.o
[ 39%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-menu-callbacks.c.o
Linking C shared library libcd_gnome-integration.so
[ 39%] Built target cd_gnome-integration
Scanning dependencies of target cd-icon-effect
Linking C shared library libcd-dnd2share.so
Linking C shared library libcd-Folders.so
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-menu-callbacks.c: In function ‘menu_item_style_set’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-menu-callbacks.c:282: warning: implicit declaration of function ‘gtk_widget_get_mapped’
[ 39%] Built target cd-dnd2share
Scanning dependencies of target cd-illusion
[ 39%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-menu.c.o
[ 39%] Built target cd-Folders
[ 40%] [ 40%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-util.c.o
Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-init.c.o
[ 40%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-init.c.o
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-menu.c: In function ‘reload_image_menu_items’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-menu.c:101: warning: implicit declaration of function ‘gtk_widget_get_mapped’
[ 41%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-config.c.o
[ 41%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-recent.c.o
Scanning dependencies of target cd_kde-integration
[ 42%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-config.c.o
[ 43%] Building C object kde-integration/src/CMakeFiles/cd_kde-integration.dir/applet-init.c.o
[ 43%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-notifications.c.o
[ 43%] Building C object GMenu-old/src/CMakeFiles/cd-GMenu.dir/applet-run-dialog.c.o
[ 43%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-notifications.c.o
[ 43%] Building C object kde-integration/src/CMakeFiles/cd_kde-integration.dir/applet-vfs.c.o
[ 43%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-fire.c.o
Linking C shared library libcd-GMenu.so
[ 44%] [ 44%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-evaporate.c.o
Built target cd-GMenu
Scanning dependencies of target cd-keyboard-indicator
[ 44%] Building C object kde-integration/src/CMakeFiles/cd_kde-integration.dir/applet-utils.c.o
[ 45%] Building C object keyboard-indicator/src/CMakeFiles/cd-keyboard-indicator.dir/applet-init.c.o
[ 46%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-rain.c.o
Linking C shared library libcd_kde-integration.so
[ 46%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-fade-out.c.o
[ 46%] Built target cd_kde-integration
[ 46%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-explode.c.o
[ 46%] Building C object keyboard-indicator/src/CMakeFiles/cd-keyboard-indicator.dir/applet-config.c.o
[ 46%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-snow.c.o
[ 46%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-star.c.o
[ 47%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-break.c.o
Scanning dependencies of target cd-logout
[ 47%] Building C object keyboard-indicator/src/CMakeFiles/cd-keyboard-indicator.dir/applet-notifications.c.o
[ 48%] Building C object logout/src/CMakeFiles/cd-logout.dir/applet-init.c.o
[ 49%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-storm.c.o
[ 49%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-black-hole.c.o
[ 50%] Building C object keyboard-indicator/src/CMakeFiles/cd-keyboard-indicator.dir/applet-xklavier.c.o
[ 50%] Building C object logout/src/CMakeFiles/cd-logout.dir/applet-config.c.o
[ 50%] Building C object icon-effect/src/CMakeFiles/cd-icon-effect.dir/applet-firework.c.o
[ 50%] Building C object illusion/src/CMakeFiles/cd-illusion.dir/applet-lightning.c.o
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/keyboard-indicator/src/applet-xklavier.c: In function ‘cd_xkbd_stop’:
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/keyboard-indicator/src/applet-xklavier.c:203: error: too many arguments to function ‘xkl_engine_stop_listen’
make[2]: *** [keyboard-indicator/src/CMakeFiles/cd-keyboard-indicator.dir/applet-xklavier.c.o] Error 1
make[1]: *** [keyboard-indicator/src/CMakeFiles/cd-keyboard-indicator.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


looks like we are make progress, is it possible to continue fix this applet-xklavier.c thing?

matttbe, Tuesday 28 May 2013 à 19:17


Subscription date : 24 January 2009
Messages : 12573
/home/xxx/Downloads/cairo-dock-plugins-3.2.1/GMenu-old/src/applet-menu-callbacks.c:282: warning: implicit declaration of function ‘gtk_widget_get_mapped’
Which version of gtk and are you using? Older than GTK 2.20? The easiest solution is to replace
is_mapped = gtk_widget_get_mapped (widget); // since gtk-2.20
(line 282 in GMenu-old/src/applet-menu-callbacks.c) by
is_mapped = GTK_WIDGET_MAPPED (widget);


/home/xxx/Downloads/cairo-dock-plugins-3.2.1/keyboard-indicator/src/applet-xklavier.c:203: error: too many arguments to function ‘xkl_engine_stop_listen’
It seems you're maybe using a too old version of libxklavier... There is two solutions: do not compile keyboard-indicator by using this cmake flag:
-Denable-keyboard-indicator=NO ## => cmake .. -DCMAKE_INSTALL_PREFIX=/usr -Denable-keyboard-indicator=NO
or replace the line 203 in applet-xklavier.c by this one:
xkl_engine_stop_listen (myData.pEngine);

Guest, Wednesday 29 May 2013 à 04:59

I did what you told and was able to build the whole thing!!
Thank you matttbe!

fabounet, Tuesday 11 June 2013 à 17:50


Subscription date : 30 November 2007
Messages : 17118
I think we could do something for gtk_widget_get_mapped (if you did not already fix it )

matttbe, Tuesday 11 June 2013 à 19:07


Subscription date : 24 January 2009
Messages : 12573
Yes, it should be fixed on BZR

Guest, Tuesday 13 August 2013 à 17:47

This solved same issue compiling and installing cairo version 3.2.99.alpha2 on Red Hat Linux desktop 6.4/

Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
[Locked] redhat - install failure: error: gio/gdesktopappinfo.h: No such file or directory
Guest English 16 Guest [Read]
13 August 2013 à 17:47


Glx-Dock / Cairo-Dock List of forums Installation problems | Problèmes à l'installation redhat - install failure: error: gio/gdesktopappinfo.h: No such file or directory Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.