The International Simutrans Forum

 

Author Topic: simutrans 121-1 dependencies  (Read 235 times)

0 Members and 1 Guest are viewing this topic.

Offline Freahk

  • *
  • Posts: 577
  • Languages: DE, EN
simutrans 121-1 dependencies
« on: December 17, 2019, 10:24:23 PM »
I just downloaded simutrans 121-1 but I am missing a dependency
Code: [Select]
ldd ./simutrans | grep "not found"
        libminiupnpc.so.10 => not found

I have libminiupnpc16 installed, which is the only one available in opensuse repos including packman.

While that upnp thing is a good idea, it breaks with some distros in ths case the latest opensuse leap release.
While googling around, it seems that the same will also occur in ubuntu.

Fixed this creating a symlink, however that new feature should make it easyer to host a server for anyone is nice but it makes it harder to play (latest) simutrans under linux at all :/


edit: surprisingly latest simutrans is in the official repo so this should not be a problem.
It does not link libminiupnpc at all so it's either disabled or statically linked.
« Last Edit: December 17, 2019, 10:51:25 PM by Freahk »

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5593
  • Languages: EN, NO
Re: simutrans 121-1 dependencies
« Reply #1 on: December 18, 2019, 07:09:57 AM »
As I understand it, with Linux, and perhaps Unixes in general, you either build it yourself, or get it from the official repository for your particular distribution. Passing binaries around simply isn't the Unix way. While it might be possible to link miniupnpc statically, such versioning problems might happen with other libraries as well. I think Simutrans generally links statically (which means it won't get security updates for those libraries through the system), but there are some libraries that don't offer that possibility. Apart from building a multitude of different Simutrans releases for various Linux set-ups, or perhaps a Docker image, I don't know how to solve this generally.