Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

undefined reference to `hb_ft_font_create' on linux

When compiling pango I get this error:

lib/libfreetype.so: undefined reference to `hb_ft_font_create'

I've compiled freetype and harfbuzz; also I pass -lfreetype and -lharfbuzz in LIBS variable.

like image 878
nitin kumar Avatar asked Nov 27 '22 06:11

nitin kumar


1 Answers

Im guessing you're using Freetype as part of some other library, in which case you may not need harfbuzz, which seems to be there for some kind of smoothing on the fonts.

If this is the case, at the top of cmakelists.txt for FreeType just add set (CMAKE_DISABLE_FIND_PACKAGE_HarfBuzz TRUE) its not required to build freetype

like image 190
Mich Avatar answered Jan 31 '23 13:01

Mich