Can't build 0.7.3 -- GIR issues

23 views
Skip to first unread message

David Paleino

unread,
Mar 29, 2011, 1:12:00 PM3/29/11
to osm-gps-map, John Stowers
Hello everybody,
I wanted to update the Debian package, and also wanted to provide the GIR file,
so that everybody could benefit from it. So I added "--enable-introspection"
to ./configure, but...

$ make
make all-recursive
[..]
GISCAN OsmGpsMap-1.0.gir
The GObject name 'OsmGpsMap' isn't compatibile
with the configured identifier prefixes:
['OsmGpsMap']
The class would have no name. Most likely you want to specify a
different --identifier-prefix.
make[2]: *** [OsmGpsMap-1.0.gir] Error 1
make[2]: Leaving directory `/home/neo/deb/git/my/osm-gps-map/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/neo/deb/git/my/osm-gps-map'
make: *** [all] Error 2
$

The GISCAN step is as follows (V=1 make):

/usr/bin/g-ir-scanner --add-include-path=. --add-include-path=.
--namespace=OsmGpsMap --nsversion=1.0 --libtool="/bin/bash ../libtool"
--include=GObject-2.0 --include=Gtk-2.0 --library=libosmgpsmap.la
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -pthread -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -pthread -I/usr/include/libsoup-2.4
-I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
converter.c osd-utils.c osm-gps-map-osd.c osm-gps-map-layer.c
osm-gps-map-track.c osm-gps-map-point.c osm-gps-map-image.c
osm-gps-map-source.c osm-gps-map-widget.c osm-gps-map-compat.c osm-gps-map.h
osm-gps-map-osd.h osm-gps-map-layer.h osm-gps-map-track.h osm-gps-map-point.h
osm-gps-map-image.h osm-gps-map-source.h osm-gps-map-widget.h
osm-gps-map-compat.h libosmgpsmap.la --output OsmGpsMap-1.0.gir
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/gio-unix-2.0/ -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/libpng12 -c
-o /home/neo/deb/git/my/osm-gps-map/src/tmp-introspectATICoR/OsmGpsMap-1.0.o /home/neo/deb/git/my/osm-gps-map/src/tmp-introspectATICoR/OsmGpsMap-1.0.c
g-ir-scanner: link: /bin/bash ../libtool --mode=link --tag=CC --silent gcc
-o /home/neo/deb/git/my/osm-gps-map/src/tmp-introspectATICoR/OsmGpsMap-1.0
-export-dynamic -L. libosmgpsmap.la -pthread -lgio-2.0 -lgobject-2.0
-lgmodule-2.0 -lgthread-2.0 -lrt
-lglib-2.0 /home/neo/deb/git/my/osm-gps-map/src/tmp-introspectATICoR/OsmGpsMap-1.0.o

Now, I'm not a GIR expert, and I googled a couple of days but couldn't find
anything to fix this. John (but also others :)), do you know a
solution/workaround/fix?

Kindly,
David

--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

signature.asc

John Stowers

unread,
Mar 29, 2011, 2:48:41 PM3/29/11
to da...@debian.org, osm-gps-map

GIR for gtk+-2 is not worthwhile in my opinion. I suggest building
with --disable-introspection.

I was actually very close to removing g-i support in 0.7.x and might
still do so for the next release.

Proper GI support and a port to gtk-3 is coming soonish (see gtk3 branch).

Regards

John

robhealey1

unread,
Apr 23, 2011, 2:17:37 AM4/23/11
to osm-gps-map
Greetings:

I, too, am having the same issue with the building of 0.7.3 ...

You stated that there was a gtk3 branch... I would interested in
getting a hold of this one if it is possible? Will you give me the
"git clone" for this new branch or give me the url to get it or
whatever manner is acceptable?

My linux distro is Fedora 15/ rawhide, and it would be wonderful to be
able to get this working...

There is totally new features for Gramps[1] genealogy software using
osmgpsmap and I can't get it to work yet because of not having this
library...

[1] https://gramps-project.org/

Sincerely yours,
Rob G. Healey
> >  : :'  : Linuxer #334216 --|--http://www.hanskalabs.net/
> >  `. `'`  GPG: 1392B174 ----|----http://deb.li/dapal
Reply all
Reply to author
Forward
0 new messages