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 Can't compile plugins
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] Can't compile plugins
Guest Italiano 8 fabounet [Read]
27 June 2012 à 17:55

Guest, Thursday 26 April 2012 à 14:10

»-[~/stuff/src/cairo-dock-plug-ins/build]-> make
[ 1%] Building C object Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o
In file included from /home/jimbo/stuff/src/cairo-dock-plug-ins/Indicator-applet/indicator-applet.c:26:0:
/home/jimbo/stuff/src/cairo-dock-plug-ins/Indicator-applet/indicator-applet.h:24:24: fatal error: cairo-dock.h: File o directory non esistente
compilation terminated.
make[2]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/indicator-applet.c.o] Error 1
make[1]: *** [Indicator-applet/CMakeFiles/indicator-applet.dir/all] Error 2
make: *** [all] Error 2l /usr/include/cairo-dock/


But the file cairo-dock.h is where it should be..

»-[~/stuff/src/cairo-dock-plug-ins/build]-> ls -l /usr/include/cairo-dock/
-rw-r--r-- 1 root root 3888 apr 26 02:34 cairo-dock.h
drwxr-xr-x 2 root root 4096 apr 26 14:00 gldit
drwxr-xr-x 2 root root 4096 apr 26 13:15 icon-factory
drwxr-xr-x 2 root root 56 apr 26 13:15 implementations

matttbe, Sunday 29 April 2012 à 23:04


Subscription date : 24 January 2009
Messages : 12573
Strange!
What's the output of this command:
cat /usr/lib/pkgconfig/gldi.pc

and what was the output of the cmake command? Did you use the same prefix? (-DCMAKE_INSTALL_PREFIX)
With which version of the dock?

Guest, Monday 30 April 2012 à 14:25

I solved the problem making simlinks in /usr/include of any header needed, very annoying!

»-[~/stuff/src/cairo-dock-plug-ins/build]-> cat /usr/lib/pkgconfig/gldi.pc
prefix = /usr
exec_prefix = /usr
libdir = /usr/lib
includedir = /usr/include
pluginsdir = /usr/lib/cairo-dock
pluginsdatadir = /usr/share/cairo-dock/plug-ins
gtkversion = 2

Name: gldi
Description: openGL Desktop Interface. A library to build advanced interfaces for the desktop (dock, panel, desklet, dialog, ...); it supports both cairo and openGL.
Requires: gtk+-2.0 gthread-2.0 cairo librsvg-2.0 dbus-1 dbus-glib-1 libxml-2.0 xrender gl glu pangox libcurl xtst xcomposite xinerama
Libs: -L/usr/lib -lgldi
Cflags: -I/usr/include/cairo-dock -I/usr/include/cairo-dock/gldit -I/usr/include/cairo-dock/icon-factory -I/usr/include/cairo-dock/implementations
Version: 3.0.0



--

-- Check dependencies...
--

-- > Indicator-Applet:
-- > Indicator Names:
-- > Distribution:
-- DISTRO_ID: Debian, DISTRO_RELEASE: unstable
-- > AlsaMixer:
-- > Animated Icons:
-- > Cairo Penguin:
-- > Clipper:
-- > Clock:
-- > Composite Manager:
-- > DBus:
-- * Python:
-- Python Version: 2.7.3rc2 (default, Apr 22 2012, 22:30:17) [GCC 4.6.3]
-- Python executable program: /usr/bin/python
-- will use '--install-layout deb' with 'python setup.py install'
-- * Ruby:
-- Ruby library dir:
-- Could not find ruby libs, won't install Ruby interface.
CMake Warning at CMakeLists.txt:428 (message):
This 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
-- Could not find ValaC, won't build Vala interface with the version of your distribution.
CMake Warning at CMakeLists.txt:501 (message):
This program is required to compile DBus applet with Vala interface: valac
(version > 0.10)

running cd "/home/jimbo/stuff/src/cairo-dock-plug-ins/build/Dbus/interfaces/python" && /usr/bin/python setup.py -q build 2>&1
running cd "/home/jimbo/stuff/src/cairo-dock-plug-ins/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'
-- package 'libgnome-menu' not found
-- Could not find libgnome-menu; Cairo-Dock won't be built with GMenu applet.
CMake Warning at CMakeLists.txt:616 (message):
This module is required to compile GMenu applet: libgnome-menu

-- > GVFS-Integration:
-- > Gnome-Integration:
-- > 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.
CMake Warning at CMakeLists.txt:687 (message):
These modules are required to compile Impulse applet: libpulse (and fftw3 -
optional)

-- > Illusion:
-- > KDE-Integration:
-- KDE_INTEGRATION_FOUND: 1
-- > Keyboard-Indicator:
-- checking for module 'libxklavier'
-- package 'libxklavier' not found
-- Could not find libxklavier; Cairo-Dock won't be built with keyboard-indicator applet.
CMake Warning at CMakeLists.txt:791 (message):
This module is required to compile Keyboard-Indicator applet: libxklavier

-- > 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.
CMake Warning at CMakeLists.txt:811 (message):
This 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.
CMake Warning at CMakeLists.txt:860 (message):
This module is required to compile Mail applet: libetpan

-- > MeMenu: this applet has been automatically merged with Messaging-Menu
-- > Messaging-Menu:
-- > Motion Blur:
-- > MusicPlayer:
-- > NetSpeed:
-- > PowerManager:
-- > Quick Browser:
-- > Recent-Events:
-- > Remote Control:
-- > RSSreader:
-- > Shortcuts:
-- > ShowDesktop:
-- > Show Mouse:
-- > Slider:
-- > Stack:
-- > Status Notifier:
-- ApplicationAdded signal has 'Hint' = 1
-- > Switcher:
-- > System Monitor:
-- > Systray:
-- > Terminal:
-- > 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.
CMake Warning at CMakeLists.txt:1211 (message):
This module is required to compile Weblets applet: webkit-1.0

-- > WiFi:
-- > XFCE-Integration:
-- GVFS found: source file applet-thunar-vfs.c NOT included for compilation.
-- > XGamma:

--

-- Language build:
--

-- Building en.gmo...
-- Building fr.gmo...
-- Building it.gmo...
-- Building ja.gmo...
-- Building ru.gmo...
-- Building sv.gmo...
-- Building zh_CN.gmo...
-- Building nl.gmo...
-- Building ar.gmo...
-- Building cs.gmo...
-- Building de.gmo...
-- Building el.gmo...
-- Building es.gmo...
-- Building et.gmo...
-- Building eu.gmo...
-- Building hu.gmo...
-- Building id.gmo...
-- Building pl.gmo...
-- Building pt.gmo...
-- Building pt_BR.gmo...
-- Building sk.gmo...
-- Building sr.gmo...
-- Building tr.gmo...
-- Building uk.gmo...
-- Building zh_TW.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: no
-- - with Impulse applet: no
-- - with Keyboard-indicator applet: no
-- - with Mail applet: no
-- - with Messaging-Menu applet: yes
-- - with Recent-Events applet: yes
-- - with Status-Notifier applet: yes
-- - with Terminal applet: yes
-- - with Weblets applet: no
-- - with Xgamma applet: yes
-- Add On:
-- - with Sound-Menu support: yes
-- - with Screen Resolution support: yes
-- - with Sensors support: yes
-- - with UPower support: no
-- - with iCal support: yes
-- Third Party Interfaces:
-- - with Python interface: yes
-- - with Ruby interface: no
-- - with Mono interface: no
-- - with Vala interface: yes
-- - 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: libgnome-menu libpulse libxklavier upower-glib 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 valac 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/jimbo/stuff/src/cairo-dock-plug-ins/build
--

-- Check dependencies...
--

-- > Indicator-Applet:
-- > Indicator Names:
-- > Distribution:
-- DISTRO_ID: Debian, DISTRO_RELEASE: unstable
-- > AlsaMixer:
-- > Animated Icons:
-- > Cairo Penguin:
-- > Clipper:
-- > Clock:
-- > Composite Manager:
-- > DBus:
-- * Python:
-- Python Version: 2.7.3rc2 (default, Apr 22 2012, 22:30:17) [GCC 4.6.3]
-- Python executable program: /usr/bin/python
-- will use '--install-layout deb' with 'python setup.py install'
-- * Ruby:
-- Ruby library dir:
-- Could not find ruby libs, won't install Ruby interface.
CMake Warning at CMakeLists.txt:428 (message):
This 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
-- Could not find ValaC, won't build Vala interface with the version of your distribution.
CMake Warning at CMakeLists.txt:501 (message):
This program is required to compile DBus applet with Vala interface: valac
(version > 0.10)

running cd "/home/jimbo/stuff/src/cairo-dock-plug-ins/build/Dbus/interfaces/python" && /usr/bin/python setup.py -q build 2>&1
running cd "/home/jimbo/stuff/src/cairo-dock-plug-ins/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'
-- package 'libgnome-menu' not found
-- Could not find libgnome-menu; Cairo-Dock won't be built with GMenu applet.
CMake Warning at CMakeLists.txt:616 (message):
This module is required to compile GMenu applet: libgnome-menu

-- > GVFS-Integration:
-- > Gnome-Integration:
-- > 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.
CMake Warning at CMakeLists.txt:687 (message):
These modules are required to compile Impulse applet: libpulse (and fftw3 -
optional)

-- > Illusion:
-- > KDE-Integration:
-- KDE_INTEGRATION_FOUND: 1
-- > Keyboard-Indicator:
-- checking for module 'libxklavier'
-- package 'libxklavier' not found
-- Could not find libxklavier; Cairo-Dock won't be built with keyboard-indicator applet.
CMake Warning at CMakeLists.txt:791 (message):
This module is required to compile Keyboard-Indicator applet: libxklavier

-- > 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.
CMake Warning at CMakeLists.txt:811 (message):
This 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.
CMake Warning at CMakeLists.txt:860 (message):
This module is required to compile Mail applet: libetpan

-- > MeMenu: this applet has been automatically merged with Messaging-Menu
-- > Messaging-Menu:
-- > Motion Blur:
-- > MusicPlayer:
-- > NetSpeed:
-- > PowerManager:
-- > Quick Browser:
-- > Recent-Events:
-- > Remote Control:
-- > RSSreader:
-- > Shortcuts:
-- > ShowDesktop:
-- > Show Mouse:
-- > Slider:
-- > Stack:
-- > Status Notifier:
-- ApplicationAdded signal has 'Hint' = 1
-- > Switcher:
-- > System Monitor:
-- > Systray:
-- > Terminal:
-- > 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.
CMake Warning at CMakeLists.txt:1211 (message):
This module is required to compile Weblets applet: webkit-1.0

-- > WiFi:
-- > XFCE-Integration:
-- GVFS found: source file applet-thunar-vfs.c NOT included for compilation.
-- > XGamma:

--

-- Language build:
--

-- Building en.gmo...
-- Building fr.gmo...
-- Building it.gmo...
-- Building ja.gmo...
-- Building ru.gmo...
-- Building sv.gmo...
-- Building zh_CN.gmo...
-- Building nl.gmo...
-- Building ar.gmo...
-- Building cs.gmo...
-- Building de.gmo...
-- Building el.gmo...
-- Building es.gmo...
-- Building et.gmo...
-- Building eu.gmo...
-- Building hu.gmo...
-- Building id.gmo...
-- Building pl.gmo...
-- Building pt.gmo...
-- Building pt_BR.gmo...
-- Building sk.gmo...
-- Building sr.gmo...
-- Building tr.gmo...
-- Building uk.gmo...
-- Building zh_TW.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: no
-- - with Impulse applet: no
-- - with Keyboard-indicator applet: no
-- - with Mail applet: no
-- - with Messaging-Menu applet: yes
-- - with Recent-Events applet: yes
-- - with Status-Notifier applet: yes
-- - with Terminal applet: yes
-- - with Weblets applet: no
-- - with Xgamma applet: yes
-- Add On:
-- - with Sound-Menu support: yes
-- - with Screen Resolution support: yes
-- - with Sensors support: yes
-- - with UPower support: no
-- - with iCal support: yes
-- Third Party Interfaces:
-- - with Python interface: yes
-- - with Ruby interface: no
-- - with Mono interface: no
-- - with Vala interface: yes
-- - 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: libgnome-menu libpulse libxklavier upower-glib 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 valac 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/jimbo/stuff/src/cairo-dock-plug-ins/build


I used same prefix for core and plugins cmake .. -DCMAKE_INSTALL_PREFIX=/usr
The dock is from bzr, not tested with stable
I'm using debian unstable

matttbe, Monday 30 April 2012 à 14:41


Subscription date : 24 January 2009
Messages : 12573
Strange.
But if you want, there is a script for debian (and ubuntu) (and you can also use our repository of the stable versions for Debian users)

Guest, Monday 30 April 2012 à 14:46

I'll try the script, thank you.

fabounet, Thursday 03 May 2012 à 16:31


Subscription date : 30 November 2007
Messages : 17118
check that:
echo $PKG_CONFIG_PATH

it's possible that you made a previous installation of the dock, and cmake is now using an old .pc file.

you can try a find /usr -name cairo-dock* to find all cairo-dock folders, and maybe delete the ones that are not needed any more.

rozen, Wednesday 27 June 2012 à 08:36


Subscription date : 20 December 2009
Messages : 19
Hi,

I experienced the same problem as the above guest. I am trying to build version 3.0.2 on Linux Mint Debian Edition with Xfce and no proprietary drivers so no OpenGL.

Yesterday I successfully built CD using as my cmake command:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local

I decided on /usr/local because I did not want to trash a running installation until I was sure that version 3.0.2 was running. Then I noted that some of the applets like Calendar contain the line:

. /usr/share/cairo-dock/plug-ins/Dbus/CDBashApplet.sh $*

so I figured that I should really go back and build CD with the suggested cmake command:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr

Unfortunately, make failed when it claimed it could not find cairo-dock.h as reported above.

So I redid the version specifying /usr/local and it is now running fine. I will have to find places where usr/share is specified and change them to /usr/local/share.

I did notice that the output from "cmake .. -DCMAKE_INSTALL_PREFIX=/usr" contained the following lines (at the top):

-- It seems that the current CMAKE_INSTALL_{PREFIX,LIBDIR,DATAROOTDIR} flags are not the same that you have used with the core.
-- It will be replaced by this value: /usr/local

Seems like a clue to me but I haven't any idea how to track it down. I tried to clean out everything dealing with cairo-dock and started over but still had the same result.

I also ran the command:

rozen@atlas: ~ > cat /usr/lib/pkgconfig/gldi.pc
prefix = /usr
exec_prefix = /usr
libdir = /usr/lib
includedir = /usr/include
pluginsdir = /usr/lib/cairo-dock
pluginsdatadir = /usr/share/cairo-dock/plug-ins
gtkversion = 2

Name: gldi
Description: openGL Desktop Interface. A library to build advanced interfaces for the desktop (dock, panel, desklet, dialog, ...); it supports both cairo and openGL.
Requires: gtk+-2.0 gthread-2.0 cairo librsvg-2.0 dbus-1 dbus-glib-1 libxml-2.0 xrender gl glu pangox libcurl xtst xcomposite xinerama
Libs: -L/usr/lib -lgldi
Cflags: -I/usr/include/cairo-dock -I/usr/include/cairo-dock/gldit -I/usr/include/cairo-dock/icon-factory -I/usr/include/cairo-dock/implementations
Version: 3.0.2

The Cflags seem to me to indicate the correct spot to find cairo-dock.h

rozen@atlas: ~ > ls -l /usr/include/cairo-dock/cairo-dock.h
-rw-r--r-- 1 root root 3.8K Jun 15 09:46 /usr/include/cairo-dock/cairo-dock.h

An suggestion will be most welcome.

Thanks in Advance
Don

matttbe, Wednesday 27 June 2012 à 11:29


Subscription date : 24 January 2009
Messages : 12573
Then I noted that some of the applets like Calendar contain the line:

. /usr/share/cairo-dock/plug-ins/Dbus/CDBashApplet.sh $*
Yes it's true. This thing should change
@fabounet Can you have a look to this problem?

build CD with the suggested cmake command:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr

Unfortunately, make failed when it claimed it could not find cairo-dock.h as reported above.
If you want to modify the path you have to uninstall the previous version (with make uninstall but in fact I think you can just remove all .pc files => lib/pkgconfig/cairo-dock.pc and gldi.pc) and then remove the content of the build dir before recompiling.
You can use this command to check if you're using the right path
pkg-config gldi --variable=prefix

fabounet, Wednesday 27 June 2012 à 17:55


Subscription date : 30 November 2007
Messages : 17118
indeed hard link is ugly
maybe we could create a simlink during the installation, so that /usr/share/cairo-dock/plug-ins/Dbus/ will point to $share_data_dir/cairo-dock/plug-ins/Dbus

also, sometimes I've noticed that it's not a bad idea to remove all cmake files :
rm -rf CMakeCache.txt CMakeFiles


Edit: general remark: don't forget to install the dock completely before compiling the applets

Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
[Locked] Can't compile plugins
Guest Italiano 8 fabounet [Read]
27 June 2012 à 17:55


Glx-Dock / Cairo-Dock List of forums Installation problems | Problèmes à l'installation Can't compile plugins 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.