Re: Developing a widget - help with introspection and feedback
- From: Damien Caliste <damien caliste cea fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: Developing a widget - help with introspection and feedback
- Date: Wed, 2 Oct 2013 10:18:30 +0200
Hello,
Le 01/10/2013, Rena <hyperhacker gmail com> 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]