Menu

cmake pango fatal error

Help
Anonymous
2020-10-30
2021-12-07
  • Anonymous

    Anonymous - 2020-10-30

    Heya,

    I'm aware there's a problem with Pango and harfbuzz on newer OS's and I can't figure out how to get the installation files for roccat-tools to use the correct pathways. Can you help please?

    OS: Linux Mint 20
    Roccat-tools: 5.9.0

    Error:

    Scanning dependencies of target generated_headers
    [ 0%] Built target generated_headers
    [ 0%] Generating g_cclosure_roccat_marshaller.h, g_cclosure_roccat_marshaller.c
    INFO: Reading /home/eric/Downloads/roccat-tools-5.9.0/libroccathelper/g_roccat_marshaller...
    INFO: Reading /home/eric/Downloads/roccat-tools-5.9.0/libroccathelper/g_roccat_marshaller...
    Scanning dependencies of target libroccathelper
    [ 0%] Building C object libroccathelper/CMakeFiles/libroccathelper.dir/dbus_roccat_helper.c.o
    [ 1%] Building C object libroccathelper/CMakeFiles/libroccathelper.dir/g_cclosure_roccat_marshaller.c.o
    [ 1%] Building C object libroccathelper/CMakeFiles/libroccathelper.dir/g_dbus_roccat_helper.c.o
    [ 1%] Building C object libroccathelper/CMakeFiles/libroccathelper.dir/g_roccat_helper.c.o
    [ 1%] Building C object libroccathelper/CMakeFiles/libroccathelper.dir/g_udev_roccat_helper.c.o
    [ 1%] Building C object libroccathelper/CMakeFiles/libroccathelper.dir/gtk_roccat_helper.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/eric/Downloads/roccat-tools-5.9.0/libroccathelper/gtk_roccat_helper.h:21,
    from /home/eric/Downloads/roccat-tools-5.9.0/libroccathelper/gtk_roccat_helper.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]: [libroccathelper/CMakeFiles/libroccathelper.dir/build.make:136: libroccathelper/CMakeFiles/libroccathelper.dir/gtk_roccat_helper.c.o] Error 1
    make[1]:
    [CMakeFiles/Makefile2:3775: libroccathelper/CMakeFiles/libroccathelper.dir/all] Error 2
    make: *** [Makefile:141: all] Error 2</hb.h>

    Driving me crackers!
    Thanks for any help
    Eric

     
  • Anonymous

    Anonymous - 2020-10-31

    Hi Stefan,

    Thanks for your reply. I'd seen that and did use the suggested command for the build. My problem still occurs when I attempt to make.

    This is the output from build:

    CFLAGS="-isystem /usr/include/harfbuzz" cmake -DCMAKE_INSTALL_PREFIX="/usr" -DWITH_LUA=5.3 ..
    -- compiling for devices arvo;isku;iskufx;kiro;koneplus;konepure;konepuremilitary;konepureoptical;konextd;konextdoptical;kovaplus;kova2016;lua;nyth;pyra;ryosmk;ryosmkfx;ryostkl;savu;skeltr;sova;suora;tyon;kone
    -- Installing libraries in /usr/lib/x86_64-linux-gnu
    -- Installing udev rules in /lib/udev/rules.d
    -- Installing eventhandler plugins in /usr/lib/x86_64-linux-gnu/roccat
    -- Compiler supports attribute pack
    -- Checking for module 'luajit53'
    --   No package 'luajit53' found
    -- Checking for module 'luajit5.3'
    --   No package 'luajit5.3' found
    -- Checking for module 'luajit-5.3'
    --   No package 'luajit-5.3' found
    -- Checking for module 'luajit'
    --   Found luajit, version 2.1.0-beta3
    -- Checking for module 'lua53'
    --   Found lua53, version 5.3.3
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/eric/Downloads/roccat-tools-5.9.0/build
    

    This is the output from make:

    [  0%] Built target generated_headers
    [  0%] Building C object libroccathelper/CMakeFiles/libroccathelper.dir/gtk_roccat_helper.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/eric/Downloads/roccat-tools-5.9.0/libroccathelper/gtk_roccat_helper.h:21,
                     from /home/eric/Downloads/roccat-tools-5.9.0/libroccathelper/gtk_roccat_helper.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]: *** [libroccathelper/CMakeFiles/libroccathelper.dir/build.make:136: libroccathelper/CMakeFiles/libroccathelper.dir/gtk_roccat_helper.c.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:3775: libroccathelper/CMakeFiles/libroccathelper.dir/all] Error 2
    make: *** [Makefile:141: all] Error 2
    

    Thanks for your assistance
    Eric

     
  • Stefan Achatz

    Stefan Achatz - 2020-10-31

    Then your hb.h is in another subfolder of /usr/include or not installed. Try

    find /usr/include -name "hb.h"

    in the console and see if it find something. Then either give the right folder instead of /usr/include/harfbuzz or install the development headers for harfbuzz.

     
  • Anonymous

    Anonymous - 2020-10-31

    Well this is a mystery!

    find /usr/include -name "hb.h"
    /usr/include/harfbuzz/hb.h
    

    So it's saying hb.h is in the correct subfolder, right? I'm, as you can tell, not very deeply techy, so I'm not entirely sure what this suggests. Any ideas? Sorry that your software turns out to be the one I tried this with.

    Eric

     
  • Anonymous

    Anonymous - 2020-11-27

    I had the same problem as Eric. Solution: Delete the contents of the "build" directory before running cmake with the CFLAGS prefix.

     
  • Anonymous

    Anonymous - 2021-01-30

    Which file or Folder should i delete? Thanks

     
    • Anonymous

      Anonymous - 2021-12-07

      Hello, sorry for late reply but you delete the contents of the build folder.

       
  • Anonymous

    Anonymous - 2021-11-25

    there is probably a typo in the line

    CFLAGS="-isystem /usr/include/harfbuzz" cmake -DCMAKE_INSTALL_PREFIX="/usr" -DWITH_LUA=5.3 ..

    it worked for me when added a slash after harfbuzz..

    CFLAGS="-isystem /usr/include/harfbuzz/" cmake -DCMAKE_INSTALL_PREFIX="/usr" -DWITH_LUA=5.3 ..

     
  • Anonymous

    Anonymous - 2022-11-20
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel