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

Does Not Compile With Hazbuff #8

Open
ProdigyView opened this issue Oct 16, 2023 · 0 comments
Open

Does Not Compile With Hazbuff #8

ProdigyView opened this issue Oct 16, 2023 · 0 comments

Comments

@ProdigyView
Copy link

ProdigyView commented Oct 16, 2023

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
[email protected] 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.

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

No branches or pull requests

1 participant