D-Bus Bindings

Introduction to D-Bus Bindings

The D-Bus Bindings are a group of packages that contain programming language and platform interfaces to the D-Bus API. This is useful for programmers to easily interface D-Bus with their supported platform or language of choice. Some non-D-Bus packages will require one or more of the Bindings packages in order to build successfully.

The GLib and Python bindings are included on this page. Other language bindings are available at the D-Bus Bindings page for information.

D-Bus GLib Bindings

Introduction to D-Bus GLib Bindings

This package is known to build and work properly using an LFS-7.3 platform.

Package Information

D-Bus GLib Dependencies

Required

D-Bus-1.6.10, expat-2.1.0 and GLib-2.34.3

Optional to Build the API Documentation

Doxygen-1.8.4

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/dbus-glib

Installation of D-Bus GLib Bindings

Install D-Bus GLib Bindings by running the following commands:

./configure --prefix=/usr \
            --sysconfdir=/etc \
            --libexecdir=/usr/lib/dbus-1.0 \
            --disable-static &&
make

To test the results, issue: make check. Note that more comprehensive tests can be run by following the same method used in D-Bus instructions, which requires building the package twice.

Now, as the root user:

make install

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

Contents

Installed Program: dbus-binding-tool
Installed Library: libdbus-glib-1.so
Installed Directories: /usr/share/gtk-doc/html/dbus-glib and /usr/share/doc/dbus-glib-0.100.2

Short Descriptions

dbus-binding-tool

is a tool used to interface with the D-Bus API.

libdbus-glib-1.so

contains GLib interface functions to the D-Bus API.

D-Bus Python Bindings

Introduction to D-Bus Python Bindings

This package is known to build and work properly using an LFS-7.3 platform.

Package Information

D-Bus Python Dependencies

Required

Python-2.7.5 and D-Bus GLib Bindings-0.100.2

Optional

PyGObject-2.28.6 (required to run the test suite)

Optional (Required to build the API and HTML Documentation)

Epydoc and Docutils

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/dbus-python

Installation of D-Bus Python Bindings

Install D-Bus Python Bindings by running the following commands:

./configure --prefix=/usr \
            --docdir=/usr/share/doc/dbus-python-1.1.1 &&
make

To test the results, issue: make check. Note you must have PyGObject installed.

Now, as the root user:

make install

If you built the API documentation, install it by issuing the following commands as the root user:

install -v -m755 -d /usr/share/doc/dbus-python-1.1.1/api &&
install -v -m644    api/* \
                    /usr/share/doc/dbus-python-1.1.1/api

Contents

Installed Programs: none
Installed Libraries: Python D-Bus modules
Installed Directories: /usr/lib/python2.7/site-packages/dbus and /usr/share/doc/dbus-python-1.1.1

Last updated on 2013-03-16 12:11:58 +0000