Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Compilatoin de cairo-dock-extract-message.c sur Oneiric
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)
Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
Compilatoin de cairo-dock-extract-message.c sur Oneiric
matttbe Français 7 matttbe [Read]
25 June 2013 à 17:10

matttbe, Wednesday 29 June 2011 à 09:54 | Quote


Subscription date : 24 January 2009
Messages : 12573
Quand j'essaye de compiler cairo-dock-extract-message.c pour extraire les strings à traduire des .conf, voici ce que j'obtiens:
$ gcc `pkg-config --libs --cflags glib-2.0 cairo-dock` cairo-dock-extract-message.c -o cairo-dock-extract-message
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_Introspectable_introspect_async_callback':
cairo-dock-extract-message.c:(.text+0x4b): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_request_name_async_callback':
cairo-dock-extract-message.c:(.text+0xc0): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_release_name_async_callback':
cairo-dock-extract-message.c:(.text+0x134): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_start_service_by_name_async_callback':
cairo-dock-extract-message.c:(.text+0x1a8): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_hello_async_callback':
cairo-dock-extract-message.c:(.text+0x21c): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o:cairo-dock-extract-message.c:(.text+0x291): more undefined references to `dbus_g_proxy_end_call' follow
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_list_names_async_callback':
cairo-dock-extract-message.c:(.text+0x2df): undefined reference to `g_strv_get_type'
cairo-dock-extract-message.c:(.text+0x308): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_list_activatable_names_async_callback':
cairo-dock-extract-message.c:(.text+0x357): undefined reference to `g_strv_get_type'
cairo-dock-extract-message.c:(.text+0x380): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_add_match_async_callback':
cairo-dock-extract-message.c:(.text+0x3e8): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_remove_match_async_callback':
cairo-dock-extract-message.c:(.text+0x44f): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_get_name_owner_async_callback':
cairo-dock-extract-message.c:(.text+0x4c3): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_list_queued_owners_async_callback':
cairo-dock-extract-message.c:(.text+0x512): undefined reference to `g_strv_get_type'
cairo-dock-extract-message.c:(.text+0x53b): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_get_connection_unix_user_async_callback':
cairo-dock-extract-message.c:(.text+0x5b0): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_get_connection_unix_process_id_async_callback':
cairo-dock-extract-message.c:(.text+0x624): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_get_connection_se_linux_security_context_async_callback':
cairo-dock-extract-message.c:(.text+0x67c): undefined reference to `dbus_g_type_get_collection'
cairo-dock-extract-message.c:(.text+0x6a5): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `org_freedesktop_DBus_reload_config_async_callback':
cairo-dock-extract-message.c:(.text+0x70d): undefined reference to `dbus_g_proxy_end_call'
/tmp/ccVFNYYp.o: In function `_parse_key_comment':
cairo-dock-extract-message.c:(.text+0x858): undefined reference to `g_ascii_table'
cairo-dock-extract-message.c:(.text+0x8df): undefined reference to `g_return_if_fail_warning'
cairo-dock-extract-message.c:(.text+0x921): undefined reference to `g_malloc0_n'
cairo-dock-extract-message.c:(.text+0x943): undefined reference to `g_strsplit'
/tmp/ccVFNYYp.o: In function `main':
cairo-dock-extract-message.c:(.text+0xaae): undefined reference to `g_log'
cairo-dock-extract-message.c:(.text+0xac4): undefined reference to `g_key_file_new'
cairo-dock-extract-message.c:(.text+0xaf2): undefined reference to `g_key_file_load_from_file'
cairo-dock-extract-message.c:(.text+0xb2c): undefined reference to `g_log'
cairo-dock-extract-message.c:(.text+0xb56): undefined reference to `g_key_file_get_groups'
cairo-dock-extract-message.c:(.text+0xb66): undefined reference to `g_path_get_dirname'
cairo-dock-extract-message.c:(.text+0xb85): undefined reference to `g_strconcat'
cairo-dock-extract-message.c:(.text+0xbc8): undefined reference to `g_log'
cairo-dock-extract-message.c:(.text+0xc31): undefined reference to `g_key_file_get_keys'
cairo-dock-extract-message.c:(.text+0xc6b): undefined reference to `g_key_file_get_string'
cairo-dock-extract-message.c:(.text+0xc80): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xca8): undefined reference to `g_free'
cairo-dock-extract-message.c:(.text+0xcd1): undefined reference to `g_strfreev'
cairo-dock-extract-message.c:(.text+0xcfb): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xd31): undefined reference to `g_key_file_get_keys'
cairo-dock-extract-message.c:(.text+0xd6e): undefined reference to `g_key_file_get_comment'
cairo-dock-extract-message.c:(.text+0xdc2): undefined reference to `g_key_file_get_comment'
cairo-dock-extract-message.c:(.text+0xe16): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xe8a): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xee8): undefined reference to `g_ascii_table'
cairo-dock-extract-message.c:(.text+0xf9a): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x101c): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x109a): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x1124): undefined reference to `g_key_file_get_string'
cairo-dock-extract-message.c:(.text+0x1149): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x117f): undefined reference to `g_print'
cairo-dock-extract-message.c:(.text+0x119d): undefined reference to `g_strfreev'
cairo-dock-extract-message.c:(.text+0x11a9): undefined reference to `g_free'
cairo-dock-extract-message.c:(.text+0x11d2): undefined reference to `g_strfreev'
cairo-dock-extract-message.c:(.text+0x11fe): undefined reference to `g_strfreev'
collect2: ld returned 1 exit status

Et la sortie de pkg-config:
$ pkg-config --libs --cflags glib-2.0 cairo-dock
-pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/cairo-dock/icon-factory -I/usr/include/gtk-2.0 -I/usr/include/librsvg-2.0 -I/usr/include/libxml2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtk-2.0/include -I/usr/lib/gtkglext-1.0/include -pthread -Wl,--export-dynamic -lrsvg-2 -ldbus-glib-1 -lxml2 -lXrender -lgtkglext-x11-1.0 -lXtst -lXcomposite -lXinerama -ldbus-1 -lpthread -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0


Une idée?

fabounet, Wednesday 29 June 2011 à 16:44 | Quote


Subscription date : 30 November 2007
Messages : 17118
je crois qu'il faut faire gcc `pkg-config --libs --cflags glib-2.0 gldi` cairo-dock-extract-message.c -o cairo-dock-extract-message
cairo-dock n'est que le binaire final, mais c'est la libgldi qui est utilisée.

matttbe, Wednesday 29 June 2011 à 17:45 | Quote


Subscription date : 24 January 2009
Messages : 12573
J'avais déjà essayé mais même erreur:
$ gcc `pkg-config --libs --cflags glib-2.0 gldi` cairo-dock-extract-message.c -o cairo-dock-extract-message
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_Introspectable_introspect_async_callback':
cairo-dock-extract-message.c:(.text+0x4b): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_request_name_async_callback':
cairo-dock-extract-message.c:(.text+0xc0): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_release_name_async_callback':
cairo-dock-extract-message.c:(.text+0x134): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_start_service_by_name_async_callback':
cairo-dock-extract-message.c:(.text+0x1a8): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_hello_async_callback':
cairo-dock-extract-message.c:(.text+0x21c): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o:cairo-dock-extract-message.c:(.text+0x291): more undefined references to `dbus_g_proxy_end_call' follow
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_list_names_async_callback':
cairo-dock-extract-message.c:(.text+0x2df): undefined reference to `g_strv_get_type'
cairo-dock-extract-message.c:(.text+0x308): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_list_activatable_names_async_callback':
cairo-dock-extract-message.c:(.text+0x357): undefined reference to `g_strv_get_type'
cairo-dock-extract-message.c:(.text+0x380): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_add_match_async_callback':
cairo-dock-extract-message.c:(.text+0x3e8): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_remove_match_async_callback':
cairo-dock-extract-message.c:(.text+0x44f): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_get_name_owner_async_callback':
cairo-dock-extract-message.c:(.text+0x4c3): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_list_queued_owners_async_callback':
cairo-dock-extract-message.c:(.text+0x512): undefined reference to `g_strv_get_type'
cairo-dock-extract-message.c:(.text+0x53b): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_get_connection_unix_user_async_callback':
cairo-dock-extract-message.c:(.text+0x5b0): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_get_connection_unix_process_id_async_callback':
cairo-dock-extract-message.c:(.text+0x624): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_get_connection_se_linux_security_context_async_callback':
cairo-dock-extract-message.c:(.text+0x67c): undefined reference to `dbus_g_type_get_collection'
cairo-dock-extract-message.c:(.text+0x6a5): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `org_freedesktop_DBus_reload_config_async_callback':
cairo-dock-extract-message.c:(.text+0x70d): undefined reference to `dbus_g_proxy_end_call'
/tmp/cckwsj9w.o: In function `_parse_key_comment':
cairo-dock-extract-message.c:(.text+0x858): undefined reference to `g_ascii_table'
cairo-dock-extract-message.c:(.text+0x8df): undefined reference to `g_return_if_fail_warning'
cairo-dock-extract-message.c:(.text+0x921): undefined reference to `g_malloc0_n'
cairo-dock-extract-message.c:(.text+0x943): undefined reference to `g_strsplit'
/tmp/cckwsj9w.o: In function `main':
cairo-dock-extract-message.c:(.text+0xaae): undefined reference to `g_log'
cairo-dock-extract-message.c:(.text+0xac4): undefined reference to `g_key_file_new'
cairo-dock-extract-message.c:(.text+0xaf2): undefined reference to `g_key_file_load_from_file'
cairo-dock-extract-message.c:(.text+0xb2c): undefined reference to `g_log'
cairo-dock-extract-message.c:(.text+0xb56): undefined reference to `g_key_file_get_groups'
cairo-dock-extract-message.c:(.text+0xb66): undefined reference to `g_path_get_dirname'
cairo-dock-extract-message.c:(.text+0xb85): undefined reference to `g_strconcat'
cairo-dock-extract-message.c:(.text+0xbc8): undefined reference to `g_log'
cairo-dock-extract-message.c:(.text+0xc31): undefined reference to `g_key_file_get_keys'
cairo-dock-extract-message.c:(.text+0xc6b): undefined reference to `g_key_file_get_string'
cairo-dock-extract-message.c:(.text+0xc80): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xca8): undefined reference to `g_free'
cairo-dock-extract-message.c:(.text+0xcd1): undefined reference to `g_strfreev'
cairo-dock-extract-message.c:(.text+0xcfb): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xd31): undefined reference to `g_key_file_get_keys'
cairo-dock-extract-message.c:(.text+0xd6e): undefined reference to `g_key_file_get_comment'
cairo-dock-extract-message.c:(.text+0xdc2): undefined reference to `g_key_file_get_comment'
cairo-dock-extract-message.c:(.text+0xe16): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xe8a): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0xee8): undefined reference to `g_ascii_table'
cairo-dock-extract-message.c:(.text+0xf9a): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x101c): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x109a): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x1124): undefined reference to `g_key_file_get_string'
cairo-dock-extract-message.c:(.text+0x1149): undefined reference to `g_strescape'
cairo-dock-extract-message.c:(.text+0x117f): undefined reference to `g_print'
cairo-dock-extract-message.c:(.text+0x119d): undefined reference to `g_strfreev'
cairo-dock-extract-message.c:(.text+0x11a9): undefined reference to `g_free'
cairo-dock-extract-message.c:(.text+0x11d2): undefined reference to `g_strfreev'
cairo-dock-extract-message.c:(.text+0x11fe): undefined reference to `g_strfreev'
collect2: ld returned 1 exit status

$ pkg-config --libs --cflags glib-2.0 gldi
-pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm -I/usr/include/cairo-dock -I/usr/include/cairo-dock/cairo-dock -I/usr/include/cairo-dock/icon-factory -I/usr/include/gtk-2.0 -I/usr/include/librsvg-2.0 -I/usr/include/libxml2 -I/usr/include/gtkglext-1.0 -I/usr/lib/gtk-2.0/include -I/usr/lib/gtkglext-1.0/include -pthread -Wl,--export-dynamic -lgldi -lrsvg-2 -ldbus-glib-1 -lxml2 -lXrender -lgtkglext-x11-1.0 -lXtst -lXcomposite -lXinerama -ldbus-1 -lpthread -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0


Ca compile chez toi ou je n'ai pas la dernière version? (c'est le fichier dans po/misc)

fabounet, Thursday 30 June 2011 à 12:29 | Quote


Subscription date : 30 November 2007
Messages : 17118
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include

très bizarre comme répertoire d'include !

aussi, il manque l'include pour dbus-glib, c'est probablement la cause.
que donne pkg-config --libs --cflags dbus-glib (j'ai pas le nom exact en tête) ?

matttbe, Thursday 30 June 2011 à 13:32 | Quote


Subscription date : 24 January 2009
Messages : 12573
Oui, c'est bizarre... mais si j'enlève les 2 includes de dossier avec x86_64, j'obtiens ceci:
In file included from /usr/include/glib-2.0/glib/galloca.h:34:0,
from /usr/include/glib-2.0/glib.h:32,
from cairo-dock-extract-message.c:12:
/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: Aucun fichier ou dossier de ce type


aussi, il manque l'include pour dbus-glib, c'est probablement la cause.
que donne pkg-config --libs --cflags dbus-glib (j'ai pas le nom exact en tête) ?
Non, ça va avec dbus-1.0

fabounet, Tuesday 05 July 2011 à 15:46 | Quote


Subscription date : 30 November 2007
Messages : 17118
oui effectivement, dbus-glib est packagée bizarrement, enfin ça compile chez moi sans problème donc je ne vois pas trop

Guest, Tuesday 25 June 2013 à 14:12 | Quote

Bonjour

Pourriez-vous m'aider svp

make
[ 4%] Building C object src/CMakeFiles/openvassd.dir/attack.c.o
In file included from /usr/local/include/glib-2.0/glib/galloca.h:30:0,
from /usr/local/include/glib-2.0/glib.h:30,
from /home/openvas-scanner-3.4.0/src/attack.c:36:
/usr/local/include/glib-2.0/glib/gtypes.h:30:24: erreur fatale: glibconfig.h : Aucun fichier ou dossier de ce type
compilation terminée.
make[2]: * [src/CMakeFiles/openvassd.dir/attack.c.o] Erreur 1
make[1]:
* [src/CMakeFiles/openvassd.dir/all] Erreur 2
make: *** [all] Erreur 2

D'avance merci

matttbe, Tuesday 25 June 2013 à 17:10 | Quote


Subscription date : 24 January 2009
Messages : 12573
Euh, oui, mais c'est quoi le rapport avec le dock?

Mais bon, on peut voir que:
glibconfig.h : Aucun fichier ou dossier de ce type
Est-ce que libglib2.0-dev est installé?

Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
Compilatoin de cairo-dock-extract-message.c sur Oneiric
matttbe Français 7 matttbe [Read]
25 June 2013 à 17:10

Post a message

Anti-spam filter 3 (*) times (*) 5 =
            
Did you know ? The Code tag can do syntax colouring based in the languages : [code=php][/code]. It will work with : php,c,c++,c#,sql,bash


Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Compilatoin de cairo-dock-extract-message.c sur Oneiric 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.