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, Python, Qt3, and GObject 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.0 platform.

Package Information

D-Bus GLib Dependencies

Required

D-BUS-1.4.16, GLib-2.30.1, and expat-2.0.1

Optional to Build the API Documentation

Doxygen-1.7.5

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/dbus-1 &&
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

--libexecdir=/usr/lib/dbus-1.0/dbus-1: This moves dbus-bash-completion-helper out of /usr/libexec.

--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,a}
Installed Directories: /etc/bash_completion.d, /usr/share/gtk-doc/html/dbus-glib, and optionally /usr/share/doc/dbus-glib-0.98/api

Short Descriptions

dbus-binding-tool

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

libdbus-glib-1.{so,a}

contains GLib interface functions to the D-Bus API.

D-Bus Python Bindings

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

Introduction to D-Bus Python Bindings

Package Information

D-Bus Python Dependencies

Required

Python-2.7.2 and D-Bus GLib Bindings-0.98

Optional

PyGObject-3.0.3 (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-0.84.0 &&
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-0.84.0/api &&
install -v -m644    api/* \
                    /usr/share/doc/dbus-python-0.84.0/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-0.84.0

Trinity D-Bus Qt3 Bindings

Introduction to D-Bus Qt3 Bindings

Package Information

D-Bus Qt3 Dependencies

Required

D-BUS-1.4.16 and Qt-3.3.8d

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

Installation of D-Bus Trinity/Qt3 Bindings

[Note]

Note

Be sure your environment is set up as described in the section called “Trinity/KDE3 Pre-installation Configuration”

Install D-Bus Trinity/Qt3 Bindings by running the following commands:


BUILD=/tmp/build-dbus-tqt &&
DBUSTQT=`pwd`             &&
rm -rf   $BUILD           &&
mkdir -p $BUILD           &&
cd       $BUILD           &&

cmake -DCMAKE_INSTALL_PREFIX=$TRINITY_PREFIX \
      -DCMAKE_VERBOSE_MAKEFILE=ON            \
      $DBUSTQT            &&

unset BUILD DBUSTQT       &&
make

This package does not come with a test suite.

Now, as the root user:

make install

Contents

Installed Programs: None
Installed Library: libdbus-tqt-1.so
Installed Directory: $TRINITY_PREFIX/include/dbus-1.0

Short Descriptions

libdbus-tqt-1.so

contains Trinity/Qt3 interface functions to the D-Bus API.

D-Bus GObject Bindings (EggDBus)

Introduction to EggDBus

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

Package Information

EggDBus Dependencies

Required

D-Bus GLib Bindings-0.98 and DocBook XSL Stylesheets-1.76.1

Optional

GTK-Doc-1.18

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/eggdbus

Installation of EggDBus

Install EggDBus by running the following commands:

./configure --prefix=/usr &&
make

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

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

Contents

Installed Programs: eggdbus-binding-tool and eggdbus-glib-genmarshal
Installed Library: libeggdbus-1.{so,a}
Installed Directory: /usr/include/eggdbus-1/eggdbus

Last updated on 2011-12-21 04:45:39 +0000