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

ERROR: freetype2 not found using pkg-config #10

Closed
alicera opened this issue Feb 25, 2022 · 2 comments
Closed

ERROR: freetype2 not found using pkg-config #10

alicera opened this issue Feb 25, 2022 · 2 comments

Comments

@alicera
Copy link

alicera commented Feb 25, 2022

Follow the installation and add --enable-libfreetype.
I use --extra-cflags and --extra-ldflags to assign the path of libfreetype binary.
But meet the error ERROR: freetype2 not found using pkg-config and it try to use pkg-config to find freetype2 .pc file

END ./ffconf.XlJKo3ZL/test.cu
nvcc -gencode arch=compute_52,code=sm_52 -O2 -m64 -ptx -c -o ffconf.XlJKo3ZL/test.o ffconf.XlJKo3ZL/test.cu
test.cu
require_pkg_config libfreetype freetype2 ft2build.h FT_FREETYPE_H FT_Init_FreeType
check_pkg_config libfreetype freetype2 ft2build.h FT_FREETYPE_H FT_Init_FreeType
test_pkg_config libfreetype freetype2 ft2build.h FT_FREETYPE_H FT_Init_FreeType
false --exists --print-errors freetype2
ERROR: freetype2 not found using pkg-config
@ubawurinna
Copy link
Owner

You have to create your own .pc file and use the dll version import library.
You can't use the static version of the library with MinGW or you will have to compile a static MinGW library yourself from the freetype sources.

@alicera
Copy link
Author

alicera commented Feb 25, 2022

  1. How to create .pc ?
  2. I use freetype-windows-binaries and build ffmpeg with --extra-cflags="-I../freetype-windows-binaries-2.11.1/include" and --extra-ldflags="-LIBPATH:../freetype-windows-binaries-2.11.1/win64"
    So, the method is mistake ?

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

2 participants