gpx export and location

Lojze Blatnik lojze.blatnik at gmail.com
Wed May 6 09:18:32 BST 2020


I think, that you didn't understand the point, or I didn't express myself
correctly. I get incorrect output if I use package from 20.04 (without any
hacks). Ubuntu 18.04 doesn't ship with survexport command, that's why I did
this hack and it works! I know about ABI compatibility, but it doesn't work
with missing library (printed by ldd), and it works with linking the
available one.

So if I conclude, this hacky solution works (discovered by accident), but I
was wondering what would cause that the default 20.04 setup outputs
incorrect .3d or .gpx. Is it possible that some system settings or
environment variables make the difference?

Attachment: https://we.tl/t-x951P5xzvb

Br

On Wed, May 6, 2020 at 5:19 AM Olly Betts <olly at survex.com> wrote:

> On Sun, May 03, 2020 at 11:24:52PM +0200, Lojze Blatnik wrote:
> > We noticed interesting behavior regarding exporting gpx. On ubuntu 20.04
> > gpx export doesn't produce correct location. Docker recipe (see
> Dockerfile
> > and entrypoint.sh):
> >
> https://github.com/DZRJL/build/tree/211a227a8da5b4e0c2d76e9b50ddfdfd770faa27
> >
> > Interestingly, on ubuntu 18.04 it works correctly, but survexport doesn't
> > come with the distro, hence extracting the deb package and hacking the
> > missing library :)
>
> | ln -s /usr/lib/x86_64-linux-gnu/libproj.so.12
> /usr/lib/x86_64-linux-gnu/libproj.so.13
>
> You can't safely do that - the two libraries have different soversions
> which means they aren't ABI compatible.  That's likely the reason why
> you are getting incorrect output.
>
> But you're using packages from the PPA[*] judging by the filename, so
> why not using the bionic package for 18.04 rather than trying to hack
> the disco one to work on bionic?
>
> [*] https://launchpad.net/~survex-devs/+archive/ubuntu/ppa/+packages
>
> > In the attachment .3d and .gpx for both cases.
>
> The list seems to have stripped the attachment.  If you can reproduce
> this without the hack above, please send directly to me.
>
> Cheers,
>     Olly
>


More information about the Survex mailing list