[dss-developer] Building dss according to WiKi
Marcus Haas
mhaas at acs-online.de
Wed Nov 4 19:05:24 CET 2015
Christian,
thanks for the reply. Sorry to bother you again, but am still not
successful.
The main issue is still the missing header file ds.h which *should* come
with ds485-core but is actually not. (At least not in this version
https://git.digitalstrom.org/ds485-stack/ds485-core.git)
This is what I did:
- Install fresh Ubuntu 14.04
- Update the packages like
http://redmine.digitalstrom.org/projects/dss/wiki/UbuntuSetup
- Install Sprocketize like
http://redmine.digitalstrom.org/projects/dss/wiki/Sprocketize
- create env.sh
export PREFIX=/usr/local/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:/usr/local/lib/python2.7/dist-packages
export LUA_CPATH=/usr/lib/lua/5.2/?.so # TODO pls fix
# find libraries installed in PREFIX, e.g. needed when running dss
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PREFIX/lib
export PATH=$PATH:$PREFIX/bin
# MacOS X:
#export DYLD_LIBRARY_PATH=$PREFIX/lib
- build and install libdsuid
https://git.digitalstrom.org/ds485-stack/libdsuid.git
- build and install ds485-core
https://git.digitalstrom.org/ds485-stack/ds485-core.git
- build and install ds485-netlib
https://git.digitalstrom.org/ds485-stack/ds485-netlib.git
- build and install ds485-client
https://git.digitalstrom.org/ds485-stack/ds485-client.git
- build and install libcommchannel
https://git.digitalstrom.org/dss-misc/libcommchannel.git
- build and install dsm-api
https://git.digitalstrom.org/ds485-stack/dsm-api.git
- install https://git.digitalstrom.org/ds485-stack/dsdata.git
-get dss mainline as described here
http://redmine.digitalstrom.org/projects/dss/wiki/Git_Repository
-cconfigure dss
./configure --prefix=$PREFIX --with-search=$PREFIX \
--enable-debug \
--enable-http \
--enable-stack-protect \
--enable-libtcmalloc \
--disable-sendmail \
--enable-insecure-cookie
- make -j8
Here is what happens. What am I doing wrong?
make -j8
make all-recursive
make[1]: Verzeichnis »/usr/src/dss/dss-mainline« wird betreten
Making all in build
make[2]: Verzeichnis »/usr/src/dss/dss-mainline/build« wird betreten
make all-am
make[3]: Verzeichnis »/usr/src/dss/dss-mainline/build« wird betreten
CXX ../src/libdsscore_a-bonjour.o
CXX ../src/libdsscore_a-defaultbuseventsink.o
CXX ../src/ds485/libdsscore_a-dsactionrequest.o
CXX ../src/ds485/libdsscore_a-dsbusinterface.o
CXX ../src/ds485/libdsscore_a-dsdevicebusinterface.o
CXX ../src/ds485/libdsscore_a-dsmeteringbusinterface.o
CXX ../src/ds485/libdsscore_a-dsstructurequerybusinterface.o
CXX ../src/ds485/libdsscore_a-dsstructuremodifyingbusinterface.o
In file included from ../src/ds485/dsactionrequest.cpp:27:0:
../src/ds485/dsactionrequest.h:26:29: fatal error: digitalSTROM/ds.h: Datei
oder Verzeichnis nicht gefunden
#include <digitalSTROM/ds.h>
^
compilation terminated.
In file included from ../src/ds485/dsbusinterface.h:30:0,
from ../src/ds485/dsbusinterface.cpp:28:
../src/ds485types.h:29:29: fatal error: digitalSTROM/ds.h: Datei oder
Verzeichnis nicht gefunden
#include <digitalSTROM/ds.h>
^
In file included from ../src/businterface.h:26:0,
from ../src/ds485/dsdevicebusinterface.h:27,
from ../src/ds485/dsdevicebusinterface.cpp:30:
../src/ds485types.h:29:29: fatal error: digitalSTROM/ds.h: Datei oder
Verzeichnis nicht gefunden
#include <digitalSTROM/ds.h>
^
compilation terminated.
compilation terminated.
make[3]: *** [../src/ds485/libdsscore_a-dsactionrequest.o] Fehler 1
make[3]: *** Auf noch nicht beendete Prozesse wird gewartet …
In file included from ../src/businterface.h:26:0,
from ../src/ds485/dsmeteringbusinterface.h:26,
from ../src/ds485/dsmeteringbusinterface.cpp:27:
../src/ds485types.h:29:29: fatal error: digitalSTROM/ds.h: Datei oder
Verzeichnis nicht gefunden
#include <digitalSTROM/ds.h>
^
compilation terminated.
In file included from ../src/businterface.h:26:0,
from ../src/ds485/dsstructurequerybusinterface.h:26,
from ../src/ds485/dsstructurequerybusinterface.cpp:28:
../src/ds485types.h:29:29: fatal error: digitalSTROM/ds.h: Datei oder
Verzeichnis nicht gefunden
#include <digitalSTROM/ds.h>
.
.
.
.
make[3]: *** [../src/ds485/libdsscore_a-dsstructuremodifyingbusinterface.o]
Fehler 1
make[3]: *** [../src/libdsscore_a-bonjour.o] Fehler 1
make[3]: Verzeichnis »/usr/src/dss/dss-mainline/build« wird verlassen
make[2]: *** [all] Fehler 2
make[2]: Verzeichnis »/usr/src/dss/dss-mainline/build« wird verlassen
make[1]: *** [all-recursive] Fehler 1
make[1]: Verzeichnis »/usr/src/dss/dss-mainline« wird verlassen
make: *** [all] Fehler 2
-----Ursprüngliche Nachricht-----
Von: Christian Hitz [mailto:christian.hitz at digitalstrom.com]
Gesendet: Dienstag, 3. November 2015 15:48
An: dss-developer at forum.digitalstrom.org
Betreff: Re: [dss-developer] Building dss according to WiKi
Hi Marcus,
On 03.11.2015 13:22, Marcus Haas wrote:
> Hello all,
>
> I know (via Google) that this question was in here before, but I could
> not find the solution:
>
> I have been trying to build the dss exactly according to the
> instructions in the Wiki. Everything worked including the missing
> “dss-misc/libcommchannel” as also mentioned in an earlier thread
>
(http://forum.digitalstrom.org/pipermail/dss-developer/2015-September/000771
.html).
I went through the Wiki again and cleaned up some details. With these
instructions I could successfully build the dSS and all dependencies.
(I'm running Ubuntu 14.04).
> Like in the previous post, dss failed to build with the missing
> digitalSTROM/ds.h dependency.
>
> I have compiled and installed all ds485 libraries and the dsm-api from
> GIT (as instructed in the Wiki).
>
> I have tried various versions of dss (1.5, 1.33, mainline-git) but none
> of the would compile against the library stack.
>
> I would appreciate any help on how to fix the ds.h issue or a general
> indication on exactly which version of each individual library is
> required to build which version(s) of dss.
We strife to keep the master versions in Git of all libraries compatible at
all times so this would be a good starting point.
Regards,
Christian
--
Christian Hitz digitalSTROM ag, Schlieren, Switzerland
Software Development http://www.digitalstrom.com
More information about the dss-developer
mailing list