can't build python-osmgpsmap-0.7.3 into GRAMPS

133 views
Skip to first unread message

doug

unread,
Jul 19, 2011, 12:49:16 PM7/19/11
to osm-gps-map
I'm trying to build python-osmgpsmap into the genealogy program Gramps
3.3 on linux (Mandriva 2009.1) from tarball and having problems.

I've untarred osmgpsmap-0.7.3.tar.gz and python-
osmgpsmap-0.7.3.tar.gz, copied the folder python-osmgpsmap-0.7.3 into
the folder osmgpsmap-0.7.3, done a simple configure, make, make
install (as root) in osmgpsmap-0.7.3; then cd'd to python-
osmgpsmap-0.7.3 and done a simple configure, make, make install (as
root) there.

The libosmgpsmap libraries are installed in /usr/local/lib; the
osmgpsmap libraries in /usr/local/lib64/python2.6/site-packages/
gtk-2.0.

The commands 'python' , 'import osmgpsmap' , 'print
osmgpsmap.__file__' run in /usr/local/lib64/python2.6/site-packages/
gtk-2.0 and anywhere else I care to link to the osmgpsmap libraries,
so the module itself is OK.

But Gramps will *not* link in the osmgpsmap module however I run './
configure' , 'make', make install' in the untarr'ed gramps folder.
Having linked the osmgpsmap libararies into /usr/local/lib I've tried
LD_LIBRARY_PATH=/usr/local/lib;
.configure LIBS=-losmgpsmap..................................... etc.;
played around with PKG_CONFIG_PATH ............... till I'm blue in
the face. Gramps keeps telling me the osmgpsmap module has not been
found.

Can anyone give me some help? (Unfortunately there seems to be no-one
on the gramps mailing list )

Doug

Gordonjcp

unread,
Jul 26, 2011, 10:37:23 AM7/26/11
to osm-g...@googlegroups.com
On Tue, 19 Jul 2011 09:49:16 -0700 (PDT)
doug <dou...@o2.co.uk> wrote:

> I'm trying to build python-osmgpsmap into the genealogy program Gramps
> 3.3 on linux (Mandriva 2009.1) from tarball and having problems.

Aren't there packages for osmgpsmap already, for Mandriva?

> I've untarred osmgpsmap-0.7.3.tar.gz and python-
> osmgpsmap-0.7.3.tar.gz, copied the folder python-osmgpsmap-0.7.3 into
> the folder osmgpsmap-0.7.3, done a simple configure, make, make

You shouldn't need to do that, but I can't see it making any difference.

> install (as root) in osmgpsmap-0.7.3; then cd'd to python-
> osmgpsmap-0.7.3 and done a simple configure, make, make install (as
> root) there.
>
> The libosmgpsmap libraries are installed in /usr/local/lib; the
> osmgpsmap libraries in /usr/local/lib64/python2.6/site-packages/
> gtk-2.0.
>
> The commands 'python' , 'import osmgpsmap' , 'print
> osmgpsmap.__file__' run in /usr/local/lib64/python2.6/site-packages/
> gtk-2.0 and anywhere else I care to link to the osmgpsmap libraries,
> so the module itself is OK.
>
> But Gramps will *not* link in the osmgpsmap module however I run './
> configure' , 'make', make install' in the untarr'ed gramps folder.
> Having linked the osmgpsmap libararies into /usr/local/lib I've tried
> LD_LIBRARY_PATH=/usr/local/lib;
> .configure LIBS=-losmgpsmap..................................... etc.;
> played around with PKG_CONFIG_PATH ............... till I'm blue in
> the face. Gramps keeps telling me the osmgpsmap module has not been
> found.

Isn't Gramps written in Python? Why would you be linking the C libraries there? If you can import and use python-osmgpsmap (try the Python example from the osmgpsmap website) then it should work just fine in Gramps too.

--
Gordonjcp MM0YEQ <gord...@gjcp.net>

Yiannis Kakavas

unread,
Jul 26, 2011, 10:43:26 AM7/26/11
to osm-g...@googlegroups.com


I second that, if Gramps is written in python , then you shouldn't need
anything more than 'import osmgpsmap' in the gramps code. can you import
osmgpsmap running the python shell from elsewhere on your system ?

Bartlomiej Ceglik

unread,
Jul 26, 2011, 7:45:35 AM7/26/11
to osm-g...@googlegroups.com
hi

you should use python2.5 not python
I see that it run by 2.6 it is not correct.

what exactly do you want build
if C there is a -dev package download it it will work
if python app install python-osmgpsmap and import osmgpsmap

looking for feedback

Bartlomiej Ceglik

unread,
Jul 27, 2011, 3:21:03 AM7/27/11
to osm-g...@googlegroups.com
yes
I use python-osmgpsmap in my app yosmapa.
no problems there with import.
Reply all
Reply to author
Forward
0 new messages