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 Install location
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] Install location
theodoreward English 5 theodoreward [Read]
12 October 2013 à 00:54

theodoreward, Tuesday 24 September 2013 à 06:29


Subscription date : 23 January 2013
Messages : 14
I'm compiling the dock and plugins and trying to run it without installing into my system for testing/debugging etc... but I can't get the plugins to install in a test location.

Whenever I try to run cmake on the plugins I get:
~/cairo-dock-plug-ins/build $ cmake .. -DCMAKE_INSTALL_DATAROOTDIR=cairo-inst-data -DCMAKE_INSTALL_PREFIX=~/tmp/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DCMAKE_BUILD_TYPE=Debug

-- 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
CMake Warning at CMakeLists.txt:95 (message):
Plug-ins should be installed in the same directory as the core, that is to say in /usr/lib64/cairo-dock


Even though I use the exact same command when from both the core and the plugins folders and the core makes and installs into ~/tmp/usr just fine.

theodoreward, Wednesday 25 September 2013 à 02:37


Subscription date : 23 January 2013
Messages : 14
It looks like I lost a large portion of my message yesterday, my question was this:

Is there some variable or technique I'm missing that will allow me to install plugins in a local directory?

Thanks,
Ted Ward

matttbe, Wednesday 25 September 2013 à 13:36


Subscription date : 24 January 2009
Messages : 12573
Hello,

I'm compiling the dock and plugins and trying to run it without installing into my system for testing/debugging etc... but I can't get the plugins to install in a test location.
It's possible to install the dock and its plugins to any directory but note that you have to install (make install) the core (cairo-dock) first.

e.g.:
cd cairo-dock-core/build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ../cairo-dock-plug-ins/build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ~/tmp/usr/bin
./cairo-dock


PS: this bug is maybe due to this char: '~'.
What's the content of this file? ~/tmp/usr/lib/pkgconfig/gldi.pc (you should indicate the same prefix for the plugins)

theodoreward, Thursday 26 September 2013 à 20:34


Subscription date : 23 January 2013
Messages : 14
matttbe :
Hello,
It's possible to install the dock and its plugins to any directory but note that you have to install (make install) the core (cairo-dock) first.

e.g.:
cd cairo-dock-core/build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ../cairo-dock-plug-ins/build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ~/tmp/usr/bin
./cairo-dock


What's the content of this file? ~/tmp/usr/lib/pkgconfig/gldi.pc (you should indicate the same prefix for the plugins)


I get the same thing, I ran the same procedure on cairo-dock-core first and it installed in the proper location. (by the way, cairo-dock-plugins is not a sub-folder of cairo-dock-core is it? I assume your "cd ../cairo-dock-plug-ins/build" should be "cd ../../cairo-dock-plug-ins/build")

~/cairo-dock-core/build $ cd ../../cairo-dock-plug-ins/build/
~/cairo-dock-plug-ins/build $ cmake .. -DCMAKE_INSTALL_PREFIX=/home/tward/tmp/usr -DCMAKE_BUILD_TYPE=Debug
-- 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
CMake Warning at CMakeLists.txt:95 (message):
Plug-ins should be installed in the same directory as the core, that is to
say in /usr/lib64/cairo-dock

~/cairo-dock-plug-ins/build $ cat ~/tmp/usr/lib64/pkgconfig/gldi.pc
prefix = /home/tward/tmp/usr
exec_prefix = /home/tward/tmp/usr
libdir = /home/tward/tmp/usr/lib64
includedir = /home/tward/tmp/usr/include
pluginsdir = /home/tward/tmp/usr/lib64/cairo-dock
pluginsdatadir = /home/tward/tmp/usr/cairo-inst-data/cairo-dock/plug-ins
gtkversion = 3

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+-3.0 glib-2.0 gthread-2.0 cairo librsvg-2.0 dbus-1 dbus-glib-1 libxml-2.0 gl glu libcurl xtst xcomposite xrandr xrender x11
Libs: -L/home/tward/tmp/usr/lib64 -lgldi
Cflags: -I/home/tward/tmp/usr/include/cairo-dock -I/home/tward/tmp/usr/include/cairo-dock/gldit -I/home/tward/tmp/usr/include/cairo-dock/implementations
Version: 3.2.99.rc1

matttbe, Friday 27 September 2013 à 10:30


Subscription date : 24 January 2009
Messages : 12573
(by the way, cairo-dock-plugins is not a sub-folder of cairo-dock-core is it? I assume your "cd ../cairo-dock-plug-ins/build" should be "cd ../../cairo-dock-plug-ins/build")
Oops, yes it was a mistake

pluginsdatadir = /home/tward/tmp/usr/cairo-inst-data/cairo-dock/plug-ins
This is strange! You should have /home/tward/tmp/usr/share/cairo-dock/plug-ins.

Did you do something special? e.g. did you use this flag:-DCMAKE_INSTALL_DATAROOTDIR=cairo-inst-data? You can do that but then, you'll have to reuse the same flag in the plugins.

Can you try to reinstall core and plugins but first, purge the build directory:
cd cairo-dock-core
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ../../cairo-dock-plug-ins
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ~/tmp/usr/bin
./cairo-dock

theodoreward, Saturday 12 October 2013 à 00:54


Subscription date : 23 January 2013
Messages : 14
matttbe :
(by the way, cairo-dock-plugins is not a sub-folder of cairo-dock-core is it? I assume your "cd ../cairo-dock-plug-ins/build" should be "cd ../../cairo-dock-plug-ins/build")
Oops, yes it was a mistake

pluginsdatadir = /home/tward/tmp/usr/cairo-inst-data/cairo-dock/plug-ins
This is strange! You should have /home/tward/tmp/usr/share/cairo-dock/plug-ins.

Did you do something special? e.g. did you use this flag:-DCMAKE_INSTALL_DATAROOTDIR=cairo-inst-data? You can do that but then, you'll have to reuse the same flag in the plugins.

Can you try to reinstall core and plugins but first, purge the build directory:
cd cairo-dock-core
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ../../cairo-dock-plug-ins
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$USER/tmp/usr -DCMAKE_BUILD_TYPE=Debug
make
make install
cd ~/tmp/usr/bin
./cairo-dock


Deleting the build directory did the trick. There were some files that had some sort of elevated permissions on them for whatever reason, that may have been the source of the issue.
I also had to delete the build folders in order to load the projects from qt-creator as it wants to create its own, but it seems to have fixed that issue as well.

Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
[Locked] Install location
theodoreward English 5 theodoreward [Read]
12 October 2013 à 00:54


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