Menu

#3 ubuntu, make, no such file, pango-coverage.h

open
None
2023-01-26
2020-07-16
No

Dear Stefan,
I am trying to install libgaminggear in xubuntu 20.04, having successfully installed install_deps_ubuntu, and I am getting this message when running make:

[ 45%] Building C object libgaminggearwidget/CMakeFiles/libgaminggearwidget.dir/gaminggear_about_dialog.c.o
In file included from /usr/include/pango-1.0/pango/pango-font.h:25,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from /home/simon/Installers/libgaminggear-0.15.1/libgaminggearwidget/gaminggear_about_dialog.h:21,
                 from /home/simon/Installers/libgaminggear-0.15.1/libgaminggearwidget/gaminggear_about_dialog.c:18:
/usr/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: hb.h: No such file or directory
   28 | #include <hb.h>
      |          ^~~~~~
compilation terminated.
make[2]: *** [libgaminggearwidget/CMakeFiles/libgaminggearwidget.dir/build.make:63: libgaminggearwidget/CMakeFiles/libgaminggearwidget.dir/gaminggear_about_dialog.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:451: libgaminggearwidget/CMakeFiles/libgaminggearwidget.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

The file /usr/include/pango-1.0/pango/pango-coverage.h is present. Pango is version 1.44.7.
Do you have any ideas how I can solve this?
Thank you very much.

Discussion

  • David Schlereth

    David Schlereth - 2021-05-31

    I just stumbled on the same error while trying to run make.

    I managed to get it to work following the solution I found here:

    In the pango-coverage.h and pango-fonts.h files I changed the lines #include <hb.h> to #include <harfbuzz/hb.h>.

    Probably quite a bit too late for the creator of the issue, but if someone should stumble on the same issue this is how I managed to fix it.

     
  • Simon Dedman

    Simon Dedman - 2023-01-26

    Future me stumbled back upon this problem and is very grateful, cheers!
    For others / future future me: it's pango-font.h
    Also for me/others: lua:

    sudo apt install lua5.4
    sudo apt install liblua5.4-0
    sudo apt install liblua5.4-dev
    
     

    Last edit: Simon Dedman 2023-01-26

Log in to post a comment.