--- Em dom, 8/4/12, spiky escreveu:
> De: spiky
> Assunto: [blfs-support] lxde error with glib.h
> Para: blfs-support
> Data: Domingo, 8 de Abril de 2012, 17:39
> Hi
> Not sure if this is the correct place to post this, I,m
> trying to
> install LXDE on blfs svn.
> I have a problem with 1 of the lxde packages lxpanel.
> The error is looking for glib.h in
> /usr/include/glib-2.0/glib but glib.h
> is in /usr/include/glib-2.0. I did try copying glib.h to the
> glib dir
> but still the same results.
>
> In file included from netstatus-sysdeps.h:28:0,
>
> from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error
> "Only <glib.h>
> can be included directly."
> In file included from
> /usr/include/glib-2.0/glibconfig.h:9:0,
>
> from /usr/include/glib-2.0/glib/gtypes.h:34,
>
> from netstatus-sysdeps.h:28,
>
> from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error
> "Only <glib.h>
> can be included directly."
> In file included from
> /usr/include/glib-2.0/glib/gtypes.h:35:0,
>
> from netstatus-sysdeps.h:28,
>
> from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error
> "Only <glib.h>
> can be included directly."
> In file included from
> /usr/include/glib-2.0/glib/gtypes.h:36:0,
>
> from netstatus-sysdeps.h:28,
>
> from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gversionmacros.h:28:2: error:
> #error "Only
> <glib.h> can be included directly."
> In file included from netstatus-sysdeps.h:29:0,
>
> from netstatus-sysdeps.c:28:
> /usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error
> "Only <glib.h>
> can be included directly."
> make[4]: *** [netstatus-sysdeps.lo] Error 1
> make[4]: Leaving directory
> `/sources/lxpanel-0.4.1/src/plugins/netstatus'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/sources/lxpanel-0.4.1/src/plugins'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/sources/lxpanel-0.4.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/sources/lxpanel-0.4.1'
> make: *** [all] Error 2
> --
I had this problem once. Cannot remember exactly, so, what I follows is kind a
guess.
I used:
./configure \
--prefix=${LXDE_PREFIX} \
--disable-static" &&
and one of the times, forgot to set LXDE_PREFIX=/usr, so it was empty.
Hope this helps.
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page