DSA sdk version 2.0
Install dependent packages
Clone the SDK
$ git clone https://github.com/iot-dsa-v2/sdk-dslink-cpp.git
If dependent packages (i.e. boost, openssl) are not installed to
standard locations, setup SDK to point to locations which those packages were installed
By default, Boost install location is set to /usr/local
. Modify ./install.sh to point it to your Boost install location
By default, openSSL root directory is set to /usr/local/ssl
on Linux and /usr/local/Cellar/openssl/1.0.2n
on macOS. Modify CMakeListConfig.txt
to point it to your openssl install location
On Windows and Android, refer to platform specific installation information below.
On other platform, run ./install.sh
to build the sdk or you can use cmake directly by doing something along the lines of
$ cd sdk-dslink-cpp
$ mkdir build
$ cd build
$ cmake -GNinja ..
$ ninja
Install Boost
./bootstrap.sh
sudo ./b2 install
Install openssl
sudo apt install libssl-dev
https://github.com/Microsoft/vcpkg.git
.\bootstrap-vcpkg.bat
in vcpkg folder
.\vcpkg install boost:x64-windows openssl:x64-windows gtest:x64-windows
.\vcpkg integrate install
file-open-folder..
instead of creating project pacman -Syu
and close window when finishedpacman -Su
pacman -S mingw-w64-x86_64-toolchain
install allpacman -S mingw-w64-x86_64-cmake mingw-w64-x86_64-gtest
bootstrap.sh
./b2 --without-python --layout=system address-model=64 variant=release --includedir=/mingw64/include --libdir=/mingw64/lib install
If you don’t have homebrew installed already, follow the setup instructions here
Once homebrew is installed, run the command
brew install cmake ninja boost openssl
Use Termux, install the following packages
Check your Boost library’s install root directory. Check if your Boost installlation came with static Boost libraries. Modify install.sh script accordingly.
For example, if Boost is installed under /usr and there are no static Boost libraries installed, modify install.sh script as below
cmake -GNinja . -DBOOST_ROOT=/usr -DCMAKE_INSTALL_PREFIX=. -B./build