Re: Developing a widget - help with introspection and feedback

2013-10-02 Thread Damien Caliste
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

Re: Developing a widget - help with introspection and feedback

2013-10-02 Thread David Nečas
On Tue, Oct 01, 2013 at 09:08:12PM -0400, Rena wrote:
> Hi all, I'm developing my first GTK widget. I have it working OK, but I
> can't get g-ir-scanner to cooperate.

Since you don't use libtool to build the library (which I strongly
recommend against but it's your fight) pass --no-libtool to
g-ir-scanner.  It seems to work then.

Regards,

Yeti


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list