Hello,
Le 01/10/2013, Rena a écrit :
> Hi all, I'm developing my first GTK widget. I have it working OK, but
> I can't get g-ir-scanner to cooperate.
g-ir-scanner will generate a small executable linked to your library to
get info from the objects you have (for all _get_type() routine you
have). So it needs to be able to link to something. In your case
libgtk-display.so, because you ask it like that :
> $ g-ir-scanner gtk-display.[ch] --library=gtk-display `pkg-config
It is the --library option of g-ir-scanner.
Then the linking fails:
> g-ir-scanner: link: libtool --mode=link --tag=CC gcc -o
> /home/rena/dev/pc/src/gtk-display/tmp-introspectNvmnq2/GtkDisplay-0.1
> -export-dynamic
> /home/rena/dev/pc/src/gtk-display/tmp-introspectNvmnq2/GtkDisplay-0.1.o
> -L. -lgtk-display -Wl,--export-dynamic -pthread -lgio-2.0
See here the « -L. -lgtk-display ».
So, your Makefile should be done to create this libgtk-display.so file
for it to work.
If you have already a libgtk-display.so, sorry, it's not the reason :(
Damien.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list