Re: Can't build 0.7.3 -- GIR issues [GTK3 Port]

140 views
Skip to first unread message

John Stowers

unread,
May 1, 2011, 8:31:09 PM5/1/11
to osm-g...@googlegroups.com
On Sat, Apr 23, 2011 at 6:17 PM, robhealey1 <robhe...@gmail.com> wrote:
> 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?

Hi,

Apologies for the delay in getting back to you. I was travelling. I
just pushed the gtk3 branch to
https://github.com/nzjrs/osm-gps-map/tree/gtk3

Its not working yet for many reasons (mostly rendering bugs and offset issues)

>
> 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...

Awesome (is gramps gtk3 now?). Im very busy with PhD stuff at the
moment, but may try and find some time to finish the gtk3 port.

Regards,

John

>
> [1] https://gramps-project.org/
>
> Sincerely yours,
> Rob G. Healey
>
>
> On Mar 29, 11:48 am, John Stowers <john.stow...@gmail.com> wrote:
>> On Wed, Mar 30, 2011 at 6:12 AM, David Paleino <da...@debian.org> wrote:
>> > 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?
>>
>> 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
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > 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

Rob Healey

unread,
May 1, 2011, 9:14:00 PM5/1/11
to osm-g...@googlegroups.com
Dear Mr. Stowers:

I truly appreciate your getting back to me considering that you are finishing up on your PhD degree!  I am truly impressed....

I also understand not having the time to get the gtk3 port completed!  Please do not let this interfere with your degree please!

No, Gramps has not gone to gtk3 and pygi yet, but we are getting close to a 3.3.0 release which will use osm-gps-map2...

There is some talk that if gtkspell is gtk3 compatible, then we will start the port to gtk3/ python3!  If it is done, then the next release would be Gramps-4.0.0 in possibly a year down the road!

Truly, if you need some testing of the gtk3 branch, I can help and report the bugs back to you?  I am only a minor developer in Gramps and only have a small amount of knowledge in python, C, gtk3, HTML, CSS, et all...

At Gramps, my sole responsibility is for "Edit Image Exif Metadata" addon!  I also play a small portion in the Web Reports of NarrativeWeb and WebCal...


Sincerely yours,
Rob G. Healey

--
Sincerely yours,
Rob G. Healey

"Always surround yourself with people that inspire you to
greatness!"

Rob G. Healey

unread,
Jun 22, 2012, 10:39:51 PM6/22/12
to osm-g...@googlegroups.com
Dear John:

I tried to git clone the new gtk3 branch, and it failed...

$ git clone https://github.com/nzjrs/osm-gps-map/tree/gtk3
Cloning into 'gtk3'...
fatal: https://github.com/nzjrs/osm-gps-map/tree/gtk3/info/refs not found: did you run git update-server-info on the server?

Can you please show me where I went wrong?

BTW, gramps is NOW updating to gtk3....


Sincerely yours,
Rob G. Healey
 

On Sunday, May 1, 2011 5:31:09 PM UTC-7, John Stowers wrote:

John Stowers

unread,
Jun 27, 2012, 1:43:24 AM6/27/12
to osm-g...@googlegroups.com
On Wed, Jun 20, 2012 at 10:40 AM, serge44 <Serge....@bull.net> wrote:
> Hi everybody,
>
>       gramps is now working to port from gtk2 to gtk3. Is there a chance to
> have an osm-gps-map version working.
> I'm the guy who develop the osmgpsmap interface for gramps.
> I certainly ask some questions if we have some problems.

Hi,

I never finished the gtk3 port of osm-gps-map. I could perhaps find
some time to do so if there are others wishing to help?

John

>
>
> On Monday, May 2, 2011 3:14:00 AM UTC+2, robhealey1 wrote:
>>
>> Dear Mr. Stowers:
>>
>> I truly appreciate your getting back to me considering that you are
>> finishing up on your PhD degree!  I am truly impressed....
>>
>> I also understand not having the time to get the gtk3 port completed!
>> Please do not let this interfere with your degree please!
>>
>> No, Gramps has not gone to gtk3 and pygi yet, but we are getting close to
>> a 3.3.0 release which will use osm-gps-map2...
>>
>> There is some talk that if gtkspell is gtk3 compatible, then we will start
>> the port to gtk3/ python3!  If it is done, then the next release would be
>> Gramps-4.0.0 in possibly a year down the road!
>>
>> Truly, if you need some testing of the gtk3 branch, I can help and report
>> the bugs back to you?  I am only a minor developer in Gramps and only have a
>> small amount of knowledge in python, C, gtk3, HTML, CSS, et all...
>>
>> At Gramps, my sole responsibility is for "Edit Image Exif Metadata"
>> addon!  I also play a small portion in the Web Reports of NarrativeWeb and
>> WebCal...
>>
>> Sincerely yours,
>> Rob G. Healey
>>
>> On Sun, May 1, 2011 at 5:31 PM, John Stowers wrote:

Serge Noiraud

unread,
Jun 27, 2012, 4:52:58 AM6/27/12
to osm-g...@googlegroups.com, John Stowers
Le 27/06/2012 07:43, John Stowers a écrit :
> On Wed, Jun 20, 2012 at 10:40 AM, serge44<Serge....@bull.net> wrote:
>
>> Hi everybody,
>>
>> gramps is now working to port from gtk2 to gtk3. Is there a chance to
>> have an osm-gps-map version working.
>> I'm the guy who develop the osmgpsmap interface for gramps.
>> I certainly ask some questions if we have some problems.
>>
> Hi,
>
> I never finished the gtk3 port of osm-gps-map. I could perhaps find
> some time to do so if there are others wishing to help?
>
I can help you to test it on my environment ( ubuntu or/and debian )
My knowledges in C, C++ are just sufficient to understand the code.
--
Serge Noiraud

Linux, c'est mieux surtout Debian. Firefox, c'est mieux. LibreOffice, c'est mieux.
Toute la vérité, rien que la vérité.

Développeur projet gramps : http://www.gramps-project.org/

Serge Noiraud

unread,
Aug 16, 2012, 9:57:10 AM8/16/12
to osm-g...@googlegroups.com, John Stowers
Le 27/06/2012 10:52, Serge Noiraud a écrit :
> Le 27/06/2012 07:43, John Stowers a écrit :
>> On Wed, Jun 20, 2012 at 10:40 AM, serge44<Serge....@bull.net>
>> wrote:
>>> Hi everybody,
>>>
>>> gramps is now working to port from gtk2 to gtk3. Is there a
>>> chance to
>>> have an osm-gps-map version working.
>>> I'm the guy who develop the osmgpsmap interface for gramps.
>>> I certainly ask some questions if we have some problems.
>> Hi,
>>
>> I never finished the gtk3 port of osm-gps-map. I could perhaps find
>> some time to do so if there are others wishing to help?
> I can help you to test it on my environment ( ubuntu or/and debian )
> My knowledges in C, C++ are just sufficient to understand the code.
I tried to begin the job.Too much work for me.
Since I do not understand exactly how it works, I give up.
Many modifications must be done in the code.
Many gtk call changed.
I think some fields in the structures must be modified.

It is very important to us.
Gramps now works in gtk3. Geography alone does not work.

Could we expect a version that works in gtk3 before the end of the year?

PS : Rob Healey will not respond to emails that you could send him. He
passed away in june.

Serge

John Stowers

unread,
Aug 21, 2012, 5:00:23 AM8/21/12
to Serge Noiraud, osm-g...@googlegroups.com
On Thu, Aug 16, 2012 at 3:57 PM, Serge Noiraud <Serge....@bull.net> wrote:
> Le 27/06/2012 10:52, Serge Noiraud a écrit :
>
>> Le 27/06/2012 07:43, John Stowers a écrit :
>>>
>>> On Wed, Jun 20, 2012 at 10:40 AM, serge44<Serge....@bull.net> wrote:
>>>>
>>>> Hi everybody,
>>>>
>>>> gramps is now working to port from gtk2 to gtk3. Is there a
>>>> chance to
>>>> have an osm-gps-map version working.
>>>> I'm the guy who develop the osmgpsmap interface for gramps.
>>>> I certainly ask some questions if we have some problems.
>>>
>>> Hi,
>>>
>>> I never finished the gtk3 port of osm-gps-map. I could perhaps find
>>> some time to do so if there are others wishing to help?
>>
>> I can help you to test it on my environment ( ubuntu or/and debian )
>> My knowledges in C, C++ are just sufficient to understand the code.
>
> I tried to begin the job.Too much work for me.
> Since I do not understand exactly how it works, I give up.
> Many modifications must be done in the code.
> Many gtk call changed.
> I think some fields in the structures must be modified.
>
> It is very important to us.
> Gramps now works in gtk3. Geography alone does not work.
>
> Could we expect a version that works in gtk3 before the end of the year?

Yeah, I started this again last week. I should not take too long -
since I started the port I have ported many other libraries.

>
> PS : Rob Healey will not respond to emails that you could send him. He
> passed away in june.

That is sad to hear. My Regards.

John

John Stowers

unread,
Jan 28, 2013, 3:34:29 AM1/28/13
to osm-gps-map, Serge Noiraud
Yip, its in master now, thanks a lot to


for his help.

John


On Mon, Jan 28, 2013 at 9:22 AM, Henrik B A <henrik....@gmail.com> wrote:

On Tuesday, August 21, 2012 11:00:23 AM UTC+2, John Stowers wrote:
On Thu, Aug 16, 2012 at 3:57 PM, Serge Noiraud <Serge....@bull.net> wrote:
> Could we expect a version that works in gtk3 before the end of the year?

Yeah, I started this again last week. I should not take too long -
since I started the port I have ported many other libraries.

Hi John.

Did you ever finish the GTK3 port?

Cheers,
Henrik
 

--
 
 

Serge Noiraud

unread,
Jan 28, 2013, 3:57:04 AM1/28/13
to osm-g...@googlegroups.com
Le 28/01/2013 09:22, Henrik B A a écrit :

On Tuesday, August 21, 2012 11:00:23 AM UTC+2, John Stowers wrote:
On Thu, Aug 16, 2012 at 3:57 PM, Serge Noiraud <Serge....@bull.net> wrote:
> Could we expect a version that works in gtk3 before the end of the year?

Yeah, I started this again last week. I should not take too long -
since I started the port I have ported many other libraries.
Hi John.

Did you ever finish the GTK3 port?
Yes. There are two bugs remaining.
Since the last "fix offset on click event" patch, there are offset problems when we add icon.

I tried to include again the john's modification in my tree, but I don't know how to do that.
I don't know git.

I think these offset problems are in the src/osm-gps-map-widget.c source in the following method :

osm_gps_map_set_center_and_zoom

They where introduced in the "Gtk3 : warning suppression and offset problem (EXTRA_BORDER)" patch
and perhaps near line 1127 too.


Cheers,
Henrik
 
--
 
 


--

Serge Noiraud

Les logiciels libre, c'est mieux : Debian, Firefox, LibreOffice, ...
Tout ce qui n'est pas gratuit est perdu.

Développeur projet gramps : http://gramps-project.org/ et osm-gps-map : http://nzjrs.github.com/osm-gps-map

John Stowers

unread,
Jan 29, 2013, 6:34:57 AM1/29/13
to osm-gps-map
On Mon, Jan 28, 2013 at 9:57 AM, Serge Noiraud <Serge....@bull.net> wrote:
Le 28/01/2013 09:22, Henrik B A a écrit :

On Tuesday, August 21, 2012 11:00:23 AM UTC+2, John Stowers wrote:
On Thu, Aug 16, 2012 at 3:57 PM, Serge Noiraud <Serge....@bull.net> wrote:
> Could we expect a version that works in gtk3 before the end of the year?

Yeah, I started this again last week. I should not take too long -
since I started the port I have ported many other libraries.

Hi John.

Did you ever finish the GTK3 port?
Yes. There are two bugs remaining.
Since the last "fix offset on click event" patch, there are offset problems when we add icon.

I tried to include again the john's modification in my tree, but I don't know how to do that.
I don't know git.

I made some changes after I merged your branch, to fix some bugs I saw.

Have you tested these changes or did you say it was too difficult because of git?

John
 

Serge Noiraud

unread,
Jan 29, 2013, 7:38:36 AM1/29/13
to osm-g...@googlegroups.com
Le 29/01/2013 12:34, John Stowers a écrit :



On Mon, Jan 28, 2013 at 9:57 AM, Serge Noiraud <Serge....@bull.net> wrote:
Le 28/01/2013 09:22, Henrik B A a écrit :

On Tuesday, August 21, 2012 11:00:23 AM UTC+2, John Stowers wrote:
On Thu, Aug 16, 2012 at 3:57 PM, Serge Noiraud <Serge....@bull.net> wrote:
> Could we expect a version that works in gtk3 before the end of the year?

Yeah, I started this again last week. I should not take too long -
since I started the port I have ported many other libraries.

Hi John.

Did you ever finish the GTK3 port?
Yes. There are two bugs remaining.
Since the last "fix offset on click event" patch, there are offset problems when we add icon.

I tried to include again the john's modification in my tree, but I don't know how to do that.
I don't know git.

I made some changes after I merged your branch, to fix some bugs I saw.

Have you tested these changes or did you say it was too difficult because of git?
Yes. These offset problems occurred since you corrected the last bug I left out.
I didn't know where to exactly solve these offset problems, so I tried one solution, but it was the bad one.

John
 

I think these offset problems are in the src/osm-gps-map-widget.c source in the following method :

osm_gps_map_set_center_and_zoom

They where introduced in the "Gtk3 : warning suppression and offset problem (EXTRA_BORDER)" patch
and perhaps near line 1127 too.


Cheers,
Henrik
 
--
 
 


--

Serge Noiraud

Les logiciels libre, c'est mieux : Debian, Firefox, LibreOffice, ...
Tout ce qui n'est pas gratuit est perdu.

Développeur projet gramps : http://gramps-project.org/ et osm-gps-map : http://nzjrs.github.com/osm-gps-map


--
You received this message because you are subscribed to the Google Groups "osm-gps-map" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osm-gps-map...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

John Stowers

unread,
Jan 29, 2013, 7:59:44 AM1/29/13
to osm-gps-map
On Tue, Jan 29, 2013 at 1:38 PM, Serge Noiraud <Serge....@bull.net> wrote:
Le 29/01/2013 12:34, John Stowers a écrit :



On Mon, Jan 28, 2013 at 9:57 AM, Serge Noiraud <Serge....@bull.net> wrote:
Le 28/01/2013 09:22, Henrik B A a écrit :

On Tuesday, August 21, 2012 11:00:23 AM UTC+2, John Stowers wrote:
On Thu, Aug 16, 2012 at 3:57 PM, Serge Noiraud <Serge....@bull.net> wrote:
> Could we expect a version that works in gtk3 before the end of the year?

Yeah, I started this again last week. I should not take too long -
since I started the port I have ported many other libraries.

Hi John.

Did you ever finish the GTK3 port?
Yes. There are two bugs remaining.
Since the last "fix offset on click event" patch, there are offset problems when we add icon.

I tried to include again the john's modification in my tree, but I don't know how to do that.
I don't know git.

I made some changes after I merged your branch, to fix some bugs I saw.

Have you tested these changes or did you say it was too difficult because of git?
Yes. These offset problems occurred since you corrected the last bug I left out.
I didn't know where to exactly solve these offset problems, so I tried one solution, but it was the bad one.

I saw offset problems in your branch, which my patch appears to fix.

Are you sure we are working with the same versions of the code?

Can you describe a test case please

John
 

Serge Noiraud

unread,
Jan 30, 2013, 4:14:40 AM1/30/13
to osm-g...@googlegroups.com
Le 29/01/2013 13:59, John Stowers a écrit :



On Tue, Jan 29, 2013 at 1:38 PM, Serge Noiraud <Serge....@bull.net> wrote:
Le 29/01/2013 12:34, John Stowers a écrit :



On Mon, Jan 28, 2013 at 9:57 AM, Serge Noiraud <Serge....@bull.net> wrote:
Le 28/01/2013 09:22, Henrik B A a écrit :

On Tuesday, August 21, 2012 11:00:23 AM UTC+2, John Stowers wrote:
On Thu, Aug 16, 2012 at 3:57 PM, Serge Noiraud <Serge....@bull.net> wrote:
> Could we expect a version that works in gtk3 before the end of the year?

Yeah, I started this again last week. I should not take too long -
since I started the port I have ported many other libraries.

Hi John.

Did you ever finish the GTK3 port?
Yes. There are two bugs remaining.
Since the last "fix offset on click event" patch, there are offset problems when we add icon.

I tried to include again the john's modification in my tree, but I don't know how to do that.
I don't know git.

I made some changes after I merged your branch, to fix some bugs I saw.

Have you tested these changes or did you say it was too difficult because of git?
Yes. These offset problems occurred since you corrected the last bug I left out.
I didn't know where to exactly solve these offset problems, so I tried one solution, but it was the bad one.

I saw offset problems in your branch, which my patch appears to fix.
Yes, this is OK with the example mapviewer.


Are you sure we are working with the same versions of the code?
Yes.

Can you describe a test case please
use the mapviewer.py example and click on the middle button of the mouse. Try to zoom in and out.
Reply all
Reply to author
Forward
0 new messages