DEBIAN_FRONTEND=noninteractive; apt-get update; apt-get -y install g++ cmake git autoconf libtool doxygen libavahi-client-dev libboost-filesystem-dev libboost-locale-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libboost-regex-dev libconfig-dev libcurl4-openssl-dev libgoogle-perftools-dev libjson-c-dev libossp-uuid-dev libprotobuf-dev libprotobuf-c0-dev libprotobuf-c-dev librrd-dev rrdtool libsqlite3-dev libssl-dev libxml2-dev protobuf-compiler protobuf-c-compiler python-lxml uthash-dev libexpat1-dev gcc-arm-none-eabi cppcheck transifex-client libgtest-dev google-mock wget cron default-jre srecord docker.io autopoint libasprintf-dev checkinstall gettext libpthread-stubs0-dev zip autoconf2.13 libnspr4-dev sqlite3 ssh-askpass libavahi-core-dev libxmlrpc-c++8-dev curl lcov libical-dev mkdir dS cd dS/ git clone https://git.digitalstrom.org/ds485-stack/libdsuid.git git clone https://git.digitalstrom.org/ds485-stack/ds485-core.git git clone https://git.digitalstrom.org/ds485-stack/ds485-netlib.git git clone https://git.digitalstrom.org/ds485-stack/ds485d.git git clone https://git.digitalstrom.org/ds485-stack/ds485-client.git git clone https://git.digitalstrom.org/ds485-stack/dsdata.git git clone https://git.digitalstrom.org/ds485-stack/dsm-api.git git clone https://git.digitalstrom.org/dss-misc/libcommchannel.git cat < env.sh export PREFIX=/dS/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 LD_LIBRARY_PATH=\$PREFIX/lib export PATH=\$PATH:\$PREFIX/bin EOT . env.sh for project in libdsuid ds485-core ds485-netlib ds485-client dsdata libcommchannel; do echo "Compiling $project"; pushd .; cd $project; autoreconf -if; ./configure --prefix=$PREFIX; make -j8 install; popd; done for project in dsm-api; do echo "Compiling $project"; pushd .; cd $project; cmake -DCMAKE_INSTALL_PREFIX=$PREFIX; make -j8 install; popd; done wget http://ftp.mozilla.org/pub/js/js185-1.0.0.tar.gz tar xf js185-1.0.0.tar.gz pushd . cd js-1.8.5 patch -p1 < ../js-complile.patch cd js/src autoconf2.13 ./configure --prefix=$PREFIX make -j8 make install popd pushd . git clone https://github.com/Tencent/rapidjson.git cd rapidjson git submodule update --init mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=$PREFIX .. make -j8 make install popd wget http://ftp.de.debian.org/debian/pool/main/j/json-c/libjson-c4_0.13.1+dfsg-2_amd64.deb wget http://ftp.de.debian.org/debian/pool/main/j/json-c/libjson-c-dev_0.13.1+dfsg-2_amd64.deb dpkg -i libjson-c4_0.13.1+dfsg-2_amd64.deb libjson-c-dev_0.13.1+dfsg-2_amd64.deb git clone https://git.digitalstrom.org/dss/dss-mainline.git pushd . cd dss-mainline autoreconf -if ./configure --prefix=$PREFIX --with-search=$PREFIX --enable-http --enable-debug make -j8 install popd