dbus-glib installation problem
Matt Hoosier
mwhoosier at gmail.com
Sat Sep 23 06:44:15 PDT 2006
Hi Luigi,
I've recently built the combination of dbus-0.93 and dbus-glib-0.71
without any trouble. As long as your SUSE distribution has a
reasonably modern version of pkg-config, you shouldn't need to set
$PKG_CONFIG manually. You can instead use $PKG_CONFIG_PATH to instruct
the existing pkg-config binary to search additional paths for .pc
files from hand-compiled software.
If you compiled dbus-0.93 with "--prefix=$dbus_prefix", then make sure
that the shell from which you launch the configure script of
dbus-glib-0.71 has an environment variable set (and exported) like the
following:
PKG_CONFIG_PATH=${dbus_prefix}/lib/pkgconfig
If that still doesn't allow the dbus-glib build find the correct
information, can you post back the results of running
pkg-config --cflags --libs dbus-1
to this list? It might also be useful for you to give us the contents
of ${dbus_prefix}/lib/pkgconfig/dbus-1.pc.
--Matt
On 9/22/06, Luigi Paioro <luigi at lambrate.inaf.it> wrote:
> Can you suggest me a solution? I've found that exists a PKG_CONFIG
> variable which cans influence the dbus-glib ./configure and the make
> behavior. So I've set up PKG_CONFIG=$PKG_CONFIG_PATH but nothing seems
> to change...
>
> Thanks in advance.
>
> Luigi
>
> Havoc Pennington wrote:
> > Luigi Paioro wrote:
> >> Hi!
> >>
> >> I've installed D-Bus 0.93 (in a custom dir - SUSe 10.0) and now I'm
> >> trying to install dbus-glib-0.71 and dbus-python-0.71 bindings. I've
> >> set up the LD_LIBRARY_PATH adding <dbdus install>/lib and
> >> PKG_CONFIG_PATH adding <dbdus install>/lib/pkgconfig. I've configured
> >> dbus-glib with a command like:
> >>
> >> ./configure --prefix=<dbdus install> --includedir=<dbdus install>/include
> >>
> >> but compiling I get some errors like:
> >>
> >> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/opt/gnome/include/glib-2.0
> >> -I/opt/gnome/lib/glib-2.0/include -DDBUS_COMPILATION=1
> >> -DDBUS_LOCALEDIR=\"/antigone/luigi/work/software/dbus/dbus-0.93/installation/share/locale\"
> >> -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -Wall -Wchar-subscripts
> >> -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> >> -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT
> >> dbus-glib.lo -MD -MP -MF .deps/dbus-glib.Tpo -c dbus-glib.c -fPIC
> >> -DPIC -o .libs/dbus-glib.o
> >> In file included from dbus-glib.c:25:
> >> dbus-glib.h:28:30: error: dbus/dbus-shared.h: No such file or directory
> >> In file included from dbus-glib.c:25:
> >> dbus-glib.h:74: error: syntax error before 'type'
> >> In file included from dbus-glib.c:26:
> >> dbus-glib-lowlevel.h:28:23: error: dbus/dbus.h: No such file or directory
> >>
> >> and so on.
> >>
> >
> > The Includes: from the dbus .pc file in lib/pkgconfig should be on the
> > above compile line, but they aren't. Perhaps the dbus-glib build is
> > broken and does not put them there, or maybe something else, I don't
> > have a guess though if it's not just a bug in the dbus-glib build.
> >
> > Havoc
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
More information about the dbus
mailing list