Hi Alexei,
I tried building the library as you suggested.
$ cd freetype2
$ ./configure CFLAGS="-DFT2_BUILD_LIBRARY"
$ make clean all -j4
$ make
I recompiled the freetype2 library using the above commands.But still, the ftgrid file produces undefined
reference error (Please correct me if I'm doing something wrong here).As for the reference,
/mnt/d/FreeType/freetype2-demos/objs/ftgrid.o: In function `grid_hint_draw_segment':
ftgrid.c:(.text+0x844): undefined reference to `af_glyph_hints_get_num_segments'
ftgrid.c:(.text+0x874): undefined reference to `af_glyph_hints_get_segment_offset'
/mnt/d/FreeType/freetype2-demos/objs/ftgrid.o: In function `grid_status_draw_outline':
ftgrid.c:(.text+0x159b): undefined reference to `_af_debug_disable_horz_hints'
ftgrid.c:(.text+0x15b6): undefined reference to `_af_debug_disable_vert_hints'
ftgrid.c:(.text+0x15d1): undefined reference to `_af_debug_disable_blue_hints'
ftgrid.c:(.text+0x18f5): undefined reference to `_af_debug_hints'
/mnt/d/FreeType/freetype2-demos/objs/ftgrid.o: In function `Process_Event':
ftgrid.c:(.text+0x3608): undefined reference to `_af_debug_hints'
ftgrid.c:(.text+0x3615): undefined reference to `af_glyph_hints_dump_edges'
ftgrid.c:(.text+0x3677): undefined reference to `_af_debug_hints'
ftgrid.c:(.text+0x3684): undefined reference to `af_glyph_hints_dump_segments'
ftgrid.c:(.text+0x36e6): undefined reference to `_af_debug_hints'
ftgrid.c:(.text+0x36f3): undefined reference to `af_glyph_hints_dump_points'
collect2: error: ld returned 1 exit status
Thanks!