Giter Club home page Giter Club logo

dbus's Introduction

Description

DBus library (libdbus-1-dev, v1.12.16). Patched by capicxx-dbus-runtime (v3.1.12.7) for CommonAPI from https://github.com/freedesktop/dbus. Contains API functions used to communicate with the DBus message bus.

Step 1. Install DBus

Should update before:

sudo apt-get install autoconf-archive

Clone repository and run build-configuration before compilation. We use default prefix=/usr/local that will be the same prefix for compilation capicxx-dbus-runtime also:

cd dbus
./configure --prefix=/usr/local

Build libdbus and install the package:

sudo make -C dbus 
sudo make -C dbus install
sudo make install-pkgconfigDATA

Now, it is ready to use.

(Alternative) build:

This package does come with a testsuite, but it is not possible to run it because only part of the package was built.

make -C dbus lib_LTLIBRARIES=libdbus-1.la \
     install-libLTLIBRARIES \
     install-dbusincludeHEADERS \
     install-nodist_dbusarchincludeHEADERS
make install-pkgconfigDATA

The shared library needs to be moved to /lib, and as a result the .so file in /usr/lib will need to be recreated:

mv -v /usr/lib/libdbus-1.so.* /lib
ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so

More deployment information from: http://www.linuxfromscratch.org/lfs/view/7.5-systemd/chapter06/libdbus.html

(Alternative) patching from capicxx-dbus-runtime:

CommonAPI-DBus needs some api functions of libdbus which are not available in actual libdbus versions. For these additional api functions it is necessary to patch the required libdbus version with all the patches in the directory src/dbus-patches. Use autotools to build libdbus. VERSION=1.12.16 is default version for Ubuntu-20.04 (as example)

wget http://dbus.freedesktop.org/releases/dbus/dbus-<VERSION>.tar.gz
tar -xzf dbus-<VERSION>.tar.gz
cd dbus-<VERSION>
patch -p1 < </path/to/capicxx-dbus-runtime/src/dbus-patches/patch-names>.patch 
./configure --prefix=</path to your preferred installation folder for patched libdbus>
make -C dbus 
sudo make -C dbus install
sudo make install-pkgconfigDATA

You can change the installation directory by the prefix option or you can let it uninstalled (skip the make install commands). WARNING: Installing the patched libdbus to /usr/local can prevent your system from booting correctly at the next reboot.

Step 2. Install CommonAPI-core-runtime

Clone repository (sync to v3.1.12.6):

git clone https://github.com/GENIVI/capicxx-core-runtime.git

Build:

cd <source-root>
mkdir build && cd build
cmake ..
make
sudo make install

Step 3. Install CommonAPI-dbus-runtime

Clone repository (sync to v3.1.12.7):

git clone https://github.com/GENIVI/capicxx-dbus-runtime.git

In order to build the CommonAPI-DBus-runtime library the pkgconfig files of the patched libdbus library must be added to the PKG_CONFIG_PATH.

For example, if the patched libdbus library is available in /usr/local, set the PKG_CONFIG_PATH variable as follows:

cd <source-root>
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" 

Now use CMake to build the CommonAPI-DBus-runtime library. We assume that your source directory is common-api-dbus-runtime:

cd <source-root>
sudo rm -r build
mkdir build && cd build
cmake -D USE_INSTALLED_COMMONAPI=ON -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install

You can change the installation directory by the CMake variable CMAKE_INSTALL_PREFIX or you can let it uninstalled (skip the make install command). If you want to use the uninstalled version of CommonAPI set the CMake variable USE_INSTALLED_COMMONAPI to OFF.

For further build instructions (build for windows, build documentation, tests etc.) please refer to the CommonAPI-DBus tutorial.

Full information list of CommonAPI-tools: http://genivi.github.io/capicxx-core-tools/

dbus's People

Contributors

diixo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.