Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix freetype2 version checking #2427

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

matt335672
Copy link
Member

The version of freetype2 returned by pkg-config --modversion is not the same as the freetype2 release version - more information here.

Consequently, the existing autoconfigure check for version >= 2.8.0 does not work.

This version was chosen as 2.8.x was the easiest early one to test on - Ubuntu 18.04 uses 2.8.1 and CentOS 7 uses 2.8.14.

I've just discovered the check doesn't work for Ubuntu 16.04 which only has version 2.6.1 of libfreetype6. Without this PR, the configure step works fine but the compilation fails. The failure is due to a change made in version 2.6.3 relating to removing identifiers with double underscores '__'.

With this PR, the following error is generated on Ubuntu 16.04 if --with-freetype2 is used:-

configure: error: please install version 2_8_0 or later of libfreetype6-dev or freetype-devel

Omitting --with-freetype2 from the configure simply means that the new font generation utility xrdp-mkfv1 will not be available.

The version of freetype2 returned by pkg-config --modversion is
not the same as the product release version. Consequently, the
check for version >= 2.8.0 does not work.
Copy link
Member

@metalefty metalefty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matt335672 matt335672 merged commit 31de86f into neutrinolabs:devel Nov 16, 2022
@matt335672 matt335672 deleted the check_ft_version branch November 16, 2022 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants