Menu

glibconfig.h missing

2011-09-12
2013-05-03
  • HyperHacker

    HyperHacker - 2011-09-12

    It seems some of the makefiles aren't able to find /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h.

    $ make
    build/linux-amd64/gnet/types.xml
    In file included from /usr/include/glib-2.0/glib/galloca.h:34,
                     from /usr/include/glib-2.0/glib.h:32,
                     from /usr/include/gnet-2.0/gnet.h:24,
                     from tmpfile.c:1:
    /usr/include/glib-2.0/glib/gtypes.h:34:24: error: glibconfig.h: No such file or directory

    I've tried hardlinking it to /usr/include/glib-2.0/glib/glibconfig.h but still get the same error.

     
  • HyperHacker

    HyperHacker - 2011-09-15

    I got it to compile by linking to:
    /usr/include/glib-2.0/glibconfig.h
    instead of:
    /usr/include/glib-2.0/glib/glibconfig.h

     
  • Wolfgang Oertl

    Wolfgang Oertl - 2011-09-27

    I haven't seen this error. pkg-config is used to find the include paths:

    $ pkg-config -cflags glib-2.0
    -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 

    this already points to the directory where glibconfig.h is to be found. You can check the CFLAGS compilation settings:

    $ cat build/linux-amd64/glib/config.make

    Or you can run make like this to see all the commands issued

    $ make H=

     

Log in to post a comment.

Oh no! Some styles failed to load. 😵 Please try reloading this page