tech-pkg archive

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

Re: error: hb.h: No such file or directory



On Sun, Oct 27, 2019 at 10:58:41AM +0100, Manuel Bouyer wrote:
> building OpenCPN in pkgsrc-2019Q3 fails with:
> In file included from /usr/tmp/geography/opencpn/work/.buildlink/include/pango-1.0/pango/pango-font.h:25:0,
>                  from /usr/tmp/geography/opencpn/work/.buildlink/include/pango-1.0/pango/pango-attributes.h:25,
>                  from /usr/tmp/geography/opencpn/work/.buildlink/include/pango-1.0/pango/pango.h:25,
>                  from /usr/tmp/geography/opencpn/work/.buildlink/include/gtk-2.0/gdk/gdktypes.h:37,
>                  from /usr/tmp/geography/opencpn/work/.buildlink/include/gtk-2.0/gdk/gdkscreen.h:32,
>                  from /usr/tmp/geography/opencpn/work/.buildlink/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
>                  from /usr/tmp/geography/opencpn/work/.buildlink/include/gtk-2.0/gdk/gdk.h:32,
>                  from /usr/tmp/geography/opencpn/work/OpenCPN-5.0.0/plugins/grib_pi/src/GribOverlayFactory.cpp:42:
> /usr/tmp/geography/opencpn/work/.buildlink/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: hb.h: No such file or directory
>  #include <hb.h>
>           ^~~~~~
> 
> This file is in ./include/harfbuzz/hb.h in /usr/pkg and in the buildink
> directory. In 2019Q2 pango-coverage.h doens't #include this file.
> 
> What's the best way to fix this ? Add -I/usr/pkg/include/harfbuzz to CFLAGS in
> OpenCPN, or change fix pango to #include <harfbuzz/hb.h> instead ?

When using pkg-config, the harfbuzz paths are included in the output:

# pkg-config --cflags pango
-I/usr/pkg/include/pango-1.0 -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/fribidi -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/uuid -I/usr/X11R7/include -I/usr/pkg/include/cairo -I/usr/X11R7/include/pixman-1 -I/usr/pkg/include/libpng16 -D_REENTRANT

So this should already work correctly. Can you please check why this
doesn't work in your setup?
 Thomas


Home | Main Index | Thread Index | Old Index