[dss-developer] not able to build dss on x64 linux ubuntu 18.04

Hitz, Christian christian.hitz at digitalstrom.com
Thu Jun 20 09:05:58 CEST 2019


Hi Holli

While I can not comment on your specific build issue, I can provide a 
list of commands that are known to compile the dss binary. See the 
attached instructions. I have verified them in a fresh Ubuntu 18.04.

In general I suggest to *not* use the master branch in a production 
environment as the new features might not be production-ready yet. The 
current production release is built from tag v1.54.2.

Best regards
Christian

On 18.06.19 10:04, holli wrote:
> Hello,
> 
> i did setup all correctly I believe but on the make of the dss I receive:
> 
> ranlib libds-catch-main.a
> 
> g++ -DHAVE_CONFIG_H -I. -I../../build -I..  
> -DDS_SYSCONFDIR='"/home/holli/dSS/sysroot/etc"' 
> -DDS_DATADIR='"/home/holli/dSS/sysroot/share"' -isystem../../external 
> -I../../src -DBOOST_ENABLE_ASSERT_HANDLER -pthread -I/usr/include 
> -I/home/holli/dSS/sysroot/include   -std=gnu++1z  -Werror=return-type 
> -Werror=int-to-pointer-cast -Wswitch-enum -Wno-unused-parameter  
> -D_DEBUG -g -Wall -O1  -MT 
> ../src/ds-connector/ds_connector_cat-cat-main.o -MD -MP -MF 
> ../src/ds-connector/.deps/ds_connector_cat-cat-main.Tpo -c -o 
> ../src/ds-connector/ds_connector_cat-cat-main.o `test -f 
> '../src/ds-connector/cat-main.cpp' || echo 
> '../../build/'`../src/ds-connector/cat-main.cpp
> 
> mv -f ../src/ds-connector/.deps/ds_connector_cat-cat-main.Tpo 
> ../src/ds-connector/.deps/ds_connector_cat-cat-main.Po
> 
> /bin/bash ../libtool  --tag=CXX   --mode=link g++  -std=gnu++1z  
> -Werror=return-type -Werror=int-to-pointer-cast -Wswitch-enum 
> -Wno-unused-parameter  -D_DEBUG -g -Wall -O1  -rdynamic  -o 
> ds-connector-cat ../src/ds-connector/ds_connector_cat-cat-main.o 
> libds-connector.a -lssl -lcrypto libds.a -lboost_system -lboost_thread 
> -lboost_chrono -lboost_filesystem -lpthread -ljson-c libds-asio.a 
> libds.a -lboost_system -lboost_thread -lboost_chrono -lboost_filesystem 
> -lpthread -ljson-c libds-crypt.a -lcrypto libds.a -lboost_system 
> -lboost_thread -lboost_chrono -lboost_filesystem -lpthread -ljson-c 
> libds-api.a libds.a -lboost_system -lboost_thread -lboost_chrono 
> -lboost_filesystem -lpthread -ljson-c -L/home/holli/dSS/sysroot/lib 
> -Wl,-rpath=/home/holli/dSS/sysroot/lib -Wl,--as-needed -latomic 
> -Wl,--no-as-needed libds-api.a libds.a -lboost_system -lboost_thread 
> -lboost_chrono -lboost_filesystem -lpthread -ljson-c -ldl
> 
> libtool: link: g++ -std=gnu++1z -Werror=return-type 
> -Werror=int-to-pointer-cast -Wswitch-enum -Wno-unused-parameter -D_DEBUG 
> -g -Wall -O1 -rdynamic -o ds-connector-cat 
> ../src/ds-connector/ds_connector_cat-cat-main.o 
> -Wl,-rpath=/home/holli/dSS/sysroot/lib -Wl,--as-needed 
> -Wl,--no-as-needed  libds-connector.a -lssl libds-asio.a libds-crypt.a 
> -lcrypto -L/home/holli/dSS/sysroot/lib -latomic libds-api.a libds.a 
> -lboost_system -lboost_thread -lboost_chrono -lboost_filesystem 
> -lpthread /home/holli/dSS/sysroot/lib/libjson-c.so -ldl -Wl,-rpath 
> -Wl,/home/holli/dSS/sysroot/lib -Wl,-rpath -Wl,/home/holli/dSS/sysroot/lib
> 
> libds-connector.a(libds_connector_a-client-bus.o): In function 
> `dsConnector::makeClientBus(boost::asio::io_context&, ds::Conf&, 
> dsConnector::StreamClient&, dsConnector::ClientBusHook&, 
> dsConnector::Subscriptions&)':
> 
> /home/holli/BUILD/DigitalStrom/dss-mainline/build-pc/build/../../build/../src/ds-connector/client-bus.cpp:52: 
> undefined reference to 
> `ds::asio::ReconnectTimer::ReconnectTimer(boost::asio::io_context&)'
> 
> /home/holli/BUILD/DigitalStrom/dss-mainline/build-pc/build/../../build/../src/ds-connector/client-bus.cpp:52: 
> undefined reference to `ds::asio::Timer::Timer(boost::asio::io_context&)'
> 
> collect2: error: ld returned 1 exit status
> 
> Makefile:2911: recipe for target 'ds-connector-cat' failed
> 
> This is with boost 1.66 self build and if I use the conan files – the 
> build fails as well here but with a different error:
> 
> /home/holli/BUILD/DigitalStrom/dss-mainline/build-pc/build/../../build/../src/ds/json.cpp:7: 
> undefined reference to `json_object_equal'
> 
> collect2: error: ld returned 1 exit status
> 
> I checked the json-c files – default was 12 on ubuntu now I’m on 13 and 
> the json_object.h has json_object_equal information – any help would be 
> great.
> 
> I must get the dss running on my x64 because since the last update of 
> the dss to 1.16 – every motion detection action is delayed by 4-10 
> seconds and from dss support I was told this is because my old dss and I 
> should by a new one…
> 
> Nice to roll out a software and bake my house – no fix – buy new 
> hardware from us – so I must get the dss running on my local unix env. 
> To avoid to buy another device which might be not powerful enough in 1 
> year again…
> 
> Thanks
> 
> Holli
> 
> 
> _______________________________________________
> dss-developer mailing list
> dss-developer at forum.digitalstrom.org
> http://forum.digitalstrom.org/cgi-bin/mailman/listinfo/dss-developer
> 

-- 
Christian Hitz                                           digitalSTROM AG
Team Lead Software Development                    Schlieren, Switzerland
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compile_dss_ubuntu_18.04.txt
URL: <http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20190620/5952da43/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: js-compile.patch
Type: text/x-patch
Size: 5381 bytes
Desc: js-compile.patch
URL: <http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20190620/5952da43/attachment-0001.bin>


More information about the dss-developer mailing list