How to build the dSS

Get the source

Get the dSS release tarballs from the dss developer site. Packages for all dSS11 projects can be found on the dss download site.

If you like to work with the current development snapshot get the source via git as explained here. These development snapshots may have changed dependencies or build instructions or may even have functional limitations.


The dSS relies on some external libraries. To build it from source your system needs the following libraries and their development headers.

apt/rpm packages required

To get you started we've compiled detailed instructions on how to get started on the following platforms:

Building the dS485 Stack

On top of general dependencies we need to access the digitalSTROM devices, this is handled by the dSM-API libraries, which pulls in half a dozen of libraries.

Instead of typing declaring these variables over and over again put them into a shell environment script, and always source that before configuring one of the libraries or running the dSS

export PREFIX=$HOME/dSS/sysroot

# pkg-config --list-all to find packages installed in $PREFIX
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig

# dsm-api-v2
export DSDATA_PATH=$PREFIX/share/digitalstrom
export PYTHONPATH=$PYTHONPATH:$PREFIX/lib/python2.7/dist-packages
export LUA_CPATH=$PREFIX/lib/lua/5.2/?.so # TODO pls fix

# find libraries installed in PREFIX, e.g. needed when running dss
export PATH=$PATH:$PREFIX/bin

# MacOS X:

Build libdsuid, ds485-core, ds485-netlib, ds485-client, libcommchannel (autoconf)

git clone <git://>
autoreconf -i # only needed after fresh checkout
source ../
./configure --prefix=$PREFIX
make -j8
make install

Run unit tests if avalaible

make check

Verify it installed

pkg-config --list-all | grep -e ds485 -e suid -e commchannel

digitalSTROM-Meter API dsm-api (cmake)

source ../

To debug which paths were included, passing -DCMAKE_VERBOSE_MAKEFILE=true will prove useful. This causes the exact compiler calls to be shown.

make -j8
make install

Install tables with known digitalSTROM devices

To lookup capabilities based on dsuid (think dS mac address), dsm-api needs descriptions of known devices

git clone
make install

Compiling/install digitalSTROM Server (dss-mainline)

autoreconf -i
source ../
./configure --prefix=$PREFIX --with-search=$PREFIX
make -j8

Install dSS

Install at least once to create the common paths such as webroot, where the web-content will be installed.
Typically you will run the application out of the source folder.

make install

Frequently run the unit tests

./build/dsstests [-t unittest_moudule/unittest]

or more tests
make check

Advanced configuration

To see all options

./configure --help

Common Features

--enable-http           build with HTTP support (default: HTTPS only)
--disable-bonjour       build with bonjour support (default: enabled)

Out of tree build

If you want to use the same source tree to build x86 and arm versions the generated object files must be put into separate folders

mkdir build-x86
cd build-x86
../configure --prefix=$PREFIX --with-search=$PREFIX \
  --enable-debug \
  --enable-http \
  --enable-stack-protect \
  --enable-libtcmalloc \
  --disable-sendmail \

Non-packaged standard libraries

Few software packages do not have an equivalent package, hence we need to install them locally. We follow the same procedures as we did building the digitalSTROM stack


At the time of this writing, no major distribution includes rapidjson package, but this might have changed since then

clone rapidjson repository

Here installed under external/rapidjson

source ../../
make -j8
make install

librrd 1.5.6

Our wrapper for librrd needs legacy version. Newer versions have an API break. Download legacy version from


Compile and install like above. Here installed under external/rrdtool-1.5.6

. ../../
./configure --prefix=$PREFIX \