aseprite / aseprite/freetype2

Does Not Compile With Hazbuff

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
107
Forks
59
PR merge metrics
No merged PRs in 30d

Description

I am having issues compiling ffmpeg with libfreetype with this commmand on windows MSYS2:

./configure --pkg-config-flags="--static" --enable-libvpl --enable-libopenh264
--enable-version3 --enable-libfreetype --enable-libopus --enable-libvpx --enable-libvorbis
--enable-libaom --enable-libdav1d --disable-gpl --disable-w32threads --enable-pthreads
--disable-shared --enable-static
--extra-cflags='--static' --extra-cflags="-I/mingw64/include -static" --extra-ldflags="-L/mingw64/lib -static" --prefix="/home/compiled"

I keep getting this error:

ERROR: freetype2 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

I've installed freetype with this command:

pacman -Ss mingw-w64-x86_64-freetype

I've also tried compiling freetype2 from the source:

git clone https://git.savannah.gnu.org/git/freetype/freetype2.git

cd freetype2

mkdir build && cd build

/mingw64/bin/cmake .. -G "MSYS Makefiles" -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/mingw64

make

make install

And pkg-config gives this:

pkg-config freetype2 --cflags --libs
-IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include/libpng16 -lfreetype

I can confirm the package is there:

ls /mingw64/lib/pkgconfig/freetype2.pc
/mingw64/lib/pkgconfig/freetype2.pc

My logs are giving this erro:

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
C:/msys64/mingw64/lib\libfreetype.a(src_autofit_autofit.c.obj):(.text+0x7cfc): undefined reference to `hb_buffer_destroy'
collect2.exe: error: ld returned 1 exit status
ERROR: freetype2 not found using pkg-config

Compilubf will work if I compile freetype without [harfbuzz](https://github.com/harfbuzz/harfbuzz).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the reported ffbuild/config.log output and the freetype2 pkg-config result in the issue, then inspect how the build checks and links freetype2 with HarfBuzz enabled. Done means reproducing the MSYS2 configure failure and establishing a documented, passing configuration or a clearly scoped build fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.