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.
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.
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
Look for the definition and declaration of the function 'hb_ft_font_create'. remove any 'extern', 'inline' or any additional keywords before the return type. something like this:
FUNC_DEF extern blah blah blah hb_face_t* hb_ft_face_create()
to
hb_face_t* hb_ft_face_create()
in both declaration and definition; hope it helps.
i came across the same problem,and solved by following: RE ./configure the harfbuzz and install...