You are not logged in.

#1 2019-08-17 06:49:17

JibbityJobbity
Member
Registered: 2018-10-15
Posts: 5

pango including missing hb.h

Hi, I'm having trouble building something using gtk2 and pango. It's complaining that a header called hb.h is missing but I used to build it just fine a few weeks ago. I have no clue which package this would include. The project is PCSX2, here is the error.

In file included from /usr/include/gtk-2.0/gtk/gtk.h:32:
In file included from /usr/include/gtk-2.0/gdk/gdk.h:32:
In file included from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31:
In file included from /usr/include/gtk-2.0/gdk/gdkscreen.h:32:
In file included from /usr/include/gtk-2.0/gdk/gdktypes.h:37:
In file included from /usr/include/pango-1.0/pango/pango.h:25:
In file included from /usr/include/pango-1.0/pango/pango-attributes.h:25:
In file included from /usr/include/pango-1.0/pango/pango-font.h:25:
/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: 'hb.h' file not found
#include <hb.h>
         ^~~~~~
1 error generated.

Offline

#2 2019-08-17 06:50:55

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: pango including missing hb.h

$ pkgfile hb.h
extra/harfbuzz

Last edited by skunktrader (2019-08-17 06:51:32)

Offline

#3 2019-08-17 06:56:28

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: pango including missing hb.h

Yes...  except

> pacman -Fs hb.h
extra/harfbuzz 2.5.1-1 [installed: 2.5.3-1]
    usr/include/harfbuzz/hb.h

You will need to add a "-I /usr/include/harfbuzz/" to your compiler call.

Offline

#4 2019-08-17 06:57:11

JibbityJobbity
Member
Registered: 2018-10-15
Posts: 5

Re: pango including missing hb.h

skunktrader wrote:
$ pkgfile hb.h
extra/harfbuzz

Thanks for getting back. I tried to reinstall the package but I'm still getting the same error, the file is definitely there in /usr/include. I might have to check the include paths and tell devs about this. Thanks again!

Offline

#5 2019-08-17 11:36:37

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: pango including missing hb.h

Covered in the comments on https://aur.archlinux.org/packages/pcsx2-git/ and this issue https://gitlab.kitware.com/cmake/cmake/issues/19531
Edit:
https://github.com/PCSX2/pcsx2/issues/3079

Last edited by loqs (2019-08-17 11:46:22)

Offline

#6 2019-08-18 12:39:55

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: pango including missing hb.h

Allan wrote:

You will need to add a "-I /usr/include/harfbuzz/" to your compiler call.

… or (in the interest of not hardcoding such options), the output of `pkgconf --cflags harfbuzz`, which adds a few more flags:

$ pkgconf --cflags harfbuzz
-I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

pkgshackscfgblag

Offline

Board footer

Powered by FluxBB