Cairo dock core compile error

Bug #1324990 reported by José Filipe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
Invalid
Undecided
Unassigned

Bug Description

Hi !

I had update cairo-dock-core, using bzr up, and when compiling (make), it shows the following error:

[root@ci-jfilipe build]# make
[ 14%] Built target implementations
[ 77%] Built target gldi
Linking C executable cairo-dock
gldit/libgldi.so.3.3.99.beta1: undefined reference to `gtk3_image_menu_item_set_image'
gldit/libgldi.so.3.3.99.beta1: undefined reference to `gtk3_image_menu_item_new_with_mnemonic'
gldit/libgldi.so.3.3.99.beta1: undefined reference to `gtk3_image_menu_item_get_type'
gldit/libgldi.so.3.3.99.beta1: undefined reference to `gtk3_image_menu_item_new_with_label'
gldit/libgldi.so.3.3.99.beta1: undefined reference to `gtk3_image_menu_item_get_image'
gldit/libgldi.so.3.3.99.beta1: undefined reference to `gtk3_image_menu_item_new'
collect2: error: ld returned 1 exit status
make[2]: *** [src/cairo-dock] Error 1
make[1]: *** [src/CMakeFiles/cairo-dock.dir/all] Error 2
make: *** [all] Error 2

Regards

Revision history for this message
José Filipe (jfilipe) wrote :

other compilation error with plugins

Scanning dependencies of target cd-Animated-icons
[ 2%] Building C object Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-init.c.o
[ 3%] Building C object Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-config.c.o
/home/jfilipe/testes/cairo-dock-plug-ins/Animated-icons/src/applet-config.c: In function ‘read_conf_file’:
/home/jfilipe/testes/cairo-dock-plug-ins/Animated-icons/src/applet-config.c:57:2: error: implicit declaration of function ‘CD_CONFIG_GET_COLOR_RGBA’ [-Werror=implicit-function-declaration]
  CD_CONFIG_GET_COLOR_RGBA ("Rotation", "color", pMeshColor);
  ^
/home/jfilipe/testes/cairo-dock-plug-ins/Animated-icons/src/applet-config.c:73:2: error: implicit declaration of function ‘CD_CONFIG_GET_COLOR_RGB_WITH_DEFAULT’ [-Werror=implicit-function-declaration]
  CD_CONFIG_GET_COLOR_RGB_WITH_DEFAULT ("Spot", "spot-color", pColor, col);
  ^
/home/jfilipe/testes/cairo-dock-plug-ins/Animated-icons/src/applet-config.c:76:2: error: implicit declaration of function ‘CD_CONFIG_GET_COLOR_RGBA_WITH_DEFAULT’ [-Werror=implicit-function-declaration]
  CD_CONFIG_GET_COLOR_RGBA_WITH_DEFAULT ("Spot", "halo-color", pColor, col);
  ^
/home/jfilipe/testes/cairo-dock-plug-ins/Animated-icons/src/applet-config.c:79:2: error: implicit declaration of function ‘CD_CONFIG_GET_COLOR_RGB’ [-Werror=implicit-function-declaration]
  CD_CONFIG_GET_COLOR_RGB ("Spot", "color1", pColor);
  ^
cc1: some warnings being treated as errors
make[2]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/applet-config.c.o] Error 1
make[1]: *** [Animated-icons/src/CMakeFiles/cd-Animated-icons.dir/all] Error 2
make: *** [all] Error 2

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello,

Did you clean the 'build' directory and relaunch CMake before using the 'make' command?

Changed in cairo-dock-core:
status: New → Incomplete
Revision history for this message
José Filipe (jfilipe) wrote :

Hello,

Today i updated cairo dock core and plug-ins,
deleted all files in build directory
and the

$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
$ make
$ make install

And its compiled well, without any errors :-D
But with mutch warnirngs related objects, variables and constants GTK deprecated :-(

I had to clean build directory before any compilation ??

Regards

Revision history for this message
Matthieu Baerts (matttbe) wrote :

> But with mutch warnirngs related objects, variables and constants GTK deprecated

Yes, you should a few warnings if you're using GTK 3.8 or newer because they have deprecated all "stock" functions (used to get images and titles for the menu). We should remove all icons from the menus or replace them by custom icons/other icons name but it's not an easy change...

> I had to clean build directory before any compilation ??

It's safer: if some dependences have big changes in their ABI, a clean build can be required even if CMake tries to manage that the best it can ;-)

Changed in cairo-dock-core:
status: Incomplete → Invalid
Revision history for this message
Matthieu Baerts (matttbe) wrote :

(Change the status to Invalid, not sure that it was really a bug)

In other words, it's fixed ^^

Revision history for this message
José Filipe (jfilipe) wrote :

Yes i had the most recent version of GTK ;-)

Ok, now i know that after compile i had to clean build directory ;-)
Thanks,
Regargs

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.