The International Simutrans Forum

 

Author Topic: Fix for autoconf with Allegro backend  (Read 524 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 135
Fix for autoconf with Allegro backend
« on: October 26, 2019, 07:03:17 AM »
When using autoconf for generating config.default on Ubuntu, and Allegro is installed but not SDL(2), configure falls back to the headless server build even though there is a working graphics library installed.
This is because on Ubuntu, the Allegro library is named liballeg.so which autoconf does not pick up.
The attached patch aims to fix this behaviour by searching for both liballegro.so and liballeg.so.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5642
  • Languages: EN, NO
Re: Fix for autoconf with Allegro backend
« Reply #1 on: October 27, 2019, 08:15:47 AM »
Huh? liballeg is what I remember it being called twenty years ago. This was on DOS, so it couldn't be any longer. It looks like the name might have changed in Allegro 5. Which version(s) of Allegro do(es) Simutrans work with? Which version does Ubuntu come with?

Offline ceeac

  • Devotee
  • *
  • Posts: 135
Re: Fix for autoconf with Allegro backend
« Reply #2 on: October 27, 2019, 09:57:46 AM »
Simutrans only works with Allegro 4; on Ubuntu, you can install both version 4 and 5, however the Allegro folks advise against installing both at the same time.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9993
  • Languages: De,EN,JP
Re: Fix for autoconf with Allegro backend
« Reply #3 on: October 27, 2019, 01:54:02 PM »
Does the allegro backend still work? The last time I tried it, I could not even link it properly (on windows though).

Offline ceeac

  • Devotee
  • *
  • Posts: 135
Re: Fix for autoconf with Allegro backend
« Reply #4 on: October 27, 2019, 03:07:42 PM »
For me it does work, however there are some bugs (for example, the window cannot be resized). I normally do not use the Allegro backend either, so maybe it could also be removed if no-one uses it?

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5642
  • Languages: EN, NO
Re: Fix for autoconf with Allegro backend
« Reply #5 on: October 27, 2019, 06:52:44 PM »
I think it is primarily for Haiku.

Offline X

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3799
  • Providing hosting for Simutrans projects
    • pc2.io
  • Languages: EN
Re: Fix for autoconf with Allegro backend
« Reply #6 on: October 27, 2019, 07:03:08 PM »
Rare the code for poems
But Haiku is important
We keep Allegro

:)