The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Roboron on February 11, 2020, 08:13:09 PM

Title: freetype-config deprecated in favour of pkg-conf
Post by: Roboron on February 11, 2020, 08:13:09 PM
When compiling Simutrans Standard with scaling font support for my Arch package, it was unable to find freetype-config although I have Freetype2 installed. Searching for more info I found this bug report in Debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892451)

QuoteThe next release of libfreetype6-dev will *not* ship `freetype-config', as the script has now been deprecated in favour of `pkg-config'.

If this bug is not resolved prior to the release of FreeType 2.9.1, your package may FTBFS.

This is the case for me, since freetype2 is in version 2.10.1-1 in Arch Linux.
Title: Re: freetype-config deprecated in favour of pkg-conf
Post by: prissi on February 12, 2020, 03:38:03 AM
Great, why stick to something working, just because something newer is working too.
Just add to your config.default file the line
FREETYPE_CONFIG = pkg-config freetype2

Title: Re: freetype-config deprecated in favour of pkg-conf
Post by: Ters on February 12, 2020, 05:57:54 PM
This has been brought up earlier (https://forum.simutrans.com/index.php/topic,19011.msg180232.html).
Title: Re: freetype-config deprecated in favour of pkg-conf
Post by: Roboron on February 12, 2020, 07:53:52 PM
Quote from: prissi on February 12, 2020, 03:38:03 AMJust add to your config.default file the line
FREETYPE_CONFIG = pkg-config freetype2

Thank you, this does the trick.

Quote from: Ters on February 12, 2020, 05:57:54 PMThis has been brought up earlier.

A warning in the readme or a comment in the default config files provided would has been greatly appreciated.
Title: Re: freetype-config deprecated in favour of pkg-conf
Post by: Matthew on February 12, 2020, 10:27:10 PM
Quote from: prissi on February 12, 2020, 03:38:03 AMFREETYPE_CONFIG = pkg-config freetype2

Since Extended is also dependent on Freetype, do you think this is helpful advice for people compiling Extended on Linux too?
Title: Re: freetype-config deprecated in favour of pkg-conf
Post by: Roboron on February 12, 2020, 10:31:32 PM
Quote from: Matthew on February 12, 2020, 10:27:10 PMSince Extended is also dependent on Freetype, do you think this is helpful advice for people compiling Extended on Linux too?

Are you sure it is? config file for Extended doesn't contain any references to Freetype, so I don't think Extended have (yet) merged those changes.
Title: Re: freetype-config deprecated in favour of pkg-conf
Post by: Matthew on February 12, 2020, 10:59:12 PM
Quote from: Roboron on February 12, 2020, 10:31:32 PM
Are you sure it is? config file for Extended doesn't contain any references to Freetype, so I don't think Extended have (yet) merged those changes.

You are probably right; I only checked that Freetype was in the dependencies.