freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Autofitter Debugging in ftgrid


From: Triplex
Subject: Re: [ft-devel] Autofitter Debugging in ftgrid
Date: Tue, 11 Jun 2019 14:15:48 +0530

Hi Alexei,

I tried building the library as you suggested. 
$ cd freetype2
$ ./configure CFLAGS="-DFT2_BUILD_LIBRARY"  
$ make clean all -j4
$ cd freetype2-demos
$ 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!

On Mon, Jun 10, 2019 at 6:23 PM Alexei Podtelezhnikov <address@hidden> wrote:
On Mon, Jun 10, 2019 at 8:05 AM Triplex <address@hidden> wrote:
> I was trying to enable Autofitter debugging in order to test horizontal and vertical hinting in ftgrid. But defining the FT_DEBUG_AUTOFIT  macro produces undefined reference error for all the functions providing dumps of internal autofit structures to stdout including other global variables.
>
> I already cross-checked if I'm using the correct version of the library and if enabling `FT_DEBUG_AUTOFIT' actually exports the required global variables.

It is vice versa, you should build ftgrid with FT2_BUILD_LIBRARY so
that it gets full access to FreeType internals.


--
Veeki

reply via email to

[Prev in Thread] Current Thread [Next in Thread]