gobject-introspection & command line
- From: Micha Renner <Micha Renner t-online de>
- To: gtk-devel-list gnome org
- Subject: gobject-introspection & command line
- Date: Mon, 07 Nov 2011 14:26:11 +0100
Recently, I tried to produce the Gdk-3.0.gir file with the following
command line.
g-ir-scanner --c-include=gdk/gdk.h -DGDK_COMPILATION
-DG_DISABLE_CAST_CHECKS --namespace=Gdk --nsversion=3.0
--verbose -icairo-1.0 -iGdkPixbuf-2.0 -iGio-2.0 -iPango-1.0
-Iinclude_files --library=gdk-3.0
--namespace=Gdk --nsversion=3.0 --no-libtool --output=Gdk-3.0.gir
source_files
# --------------------------------------
Output:
g-ir-scanner: compile: gcc -Wall -pthread -Iinclude_files
-o /path_to/tmp-introspect9xKBDs/Gdk-3.0.o /path_to/tmp-introspect9xKBDs/Gdk-3.0.c
g-ir-scanner: link: gcc -o /path_to/tmp-introspect9xKBDs/Gdk-3.0 -L.
-Wl,-rpath=. -lgdk-3.0 -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0
-lgthread-2.0 -lrt -lglib-2.0 /path_to/Gdk-3.0.o
# -------------------------------------
It fails because none of the libraries, required by Gdk-3.0.c, are
linked.
Gdk-3.0.c:(.text+0x92): undefined reference to
`g_markup_vprintf_escaped'
Gdk-3.0.c:(.text+0xe0): undefined reference to
`g_output_stream_write_all'
Gdk-3.0.c:(.text+0x10a): undefined reference to `g_log'
Gdk-3.0.c:(.text+0x115): undefined reference to `g_clear_error'
Gdk-3.0.c:(.text+0x120): undefined reference to `g_free'
...
all gio- & glib functions cannot be found
and
/path_to/tmp-introspectE1owOK/Gdk-3.0.o:(.data+0x0): undefined reference
to `gdk_color_get_type'
/path_to/tmp-introspectE1owOK/Gdk-3.0.o:(.data+0x4): undefined reference
to `gdk_device_get_type'
/path_tok/tmp-introspectE1owOK/Gdk-3.0.o:(.data+0x8): undefined
reference to `gdk_drag_context_get_type'
...
all get_type function cannot be found
# -----------------------------------
The command line above works with gobject-introspection Vers. 0.10.8
perfect, but not with version 1.30.0.
So where is my mistake?
Greetings
Micha
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]