Skip to content

freetype2.pc contains wrong version 2.10.0 #7

@gazsiazasz

Description

@gazsiazasz

I am trying to build libass(for mpv), and I get the following error:

configure: error: Package requirements (harfbuzz >= 1.2.3) were not met:

Package 'harfbuzz' requires 'freetype2 >= 12.0.6' but version of freetype2 is 2.10.0
You may find new versions of FreeType 2 at https://freetype.org

The docs/VERSIONS.TXT says this about versioning:

For each new  public release of FreeType 2, there  are generally *three*
distinct `version' numbers to consider:

  * The official FreeType 2 release number, like 2.3.1 or 2.4.10.

  * The libtool (and  Unix) specific version number,  like 13.0.7.  This
    is what `freetype-config --version' returns.

  * The platform-specific  shared object  number, used for  example when
    the library is installed as `/usr/lib/libfreetype.so.6.7.1'.

But the generated freetype2.pc contains the following:

Name: FreeType 2
URL: https://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 2.10.0
Requires:
Requires.private: zlib, bzip2, libpng, harfbuzz
Libs: -L${libdir} -lfreetype
Libs.private: 
Cflags: -I${includedir}/freetype2

however it should contain 13.0.7+ version according to the documentation.

I am building freetype with the following CMake statement:

ExternalProject_Add(
        freetype2
        DEPENDS           HarfBuzz
        GIT_REPOSITORY    https://github.com/aseprite/freetype2.git
        GIT_TAG           VER-2-10-0
        CMAKE_ARGS        -DCMAKE_INSTALL_PREFIX=${ROOT_PATH} -DCMAKE_PREFIX_PATH=${ROOT_PATH}

        BUILD_ALWAYS      OFF
        BUILD_IN_SOURCE   OFF)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions