The International Simutrans Forum

Development => Patches & Projects => Topic started by: ceeac on October 26, 2019, 07:03:17 AM

Title: Fix for autoconf with Allegro backend
Post by: ceeac 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.
Title: Re: Fix for autoconf with Allegro backend
Post by: Ters 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?
Title: Re: Fix for autoconf with Allegro backend
Post by: ceeac 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.
Title: Re: Fix for autoconf with Allegro backend
Post by: prissi 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).
Title: Re: Fix for autoconf with Allegro backend
Post by: ceeac 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?
Title: Re: Fix for autoconf with Allegro backend
Post by: Ters on October 27, 2019, 06:52:44 PM
I think it is primarily for Haiku.
Title: Re: Fix for autoconf with Allegro backend
Post by: Isaac Eiland-Hall on October 27, 2019, 07:03:08 PM
Rare the code for poems
But Haiku is important
We keep Allegro

:)