Skip to content

fontconvert compilation error on MacOS Sonoma M1 #447

@mitch-spec

Description

@mitch-spec

I am trying to compile fontconvert on MacOS Sonoma M1.
freetype 2.13.2 is already installed and linked via brew.

Compiling fontconvert throws the following error.

make fontconvert
gcc -Wall -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/include fontconvert.c -lfreetype -o fontconvert
fontconvert.c:22:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
         ^~~~~~~~~~~~
1 error generated.
make: *** [fontconvert] Error 1

When i am adding homebrew's location of freetype there's this error:

make fontconvert
gcc -Wall -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/include -I/opt/homebrew/include/freetype2 fontconvert.c -lfreetype -o fontconvert
ld: library 'freetype' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [fontconvert] Error 1

Do you have any idea how to resolve the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions