2 # Installs NNG then runs a build script in the repository
3 # Assumes ubuntu - uses apt-get
5 echo "--> prescan-alarm-go-ubuntu.sh"
9 sudo apt-get install -y cmake ninja-build
11 # NNG repo is not frequently tagged so it's pinned to a commit hash.
12 # This commit repairs bug https://github.com/nanomsg/nng/issues/970
13 git clone https://github.com/nanomsg/nng.git
15 && git checkout e618abf8f3db2a94269a79c8901a51148d48fcc2 \
18 && cmake -DBUILD_SHARED_LIBS=1 -G Ninja .. \
20 && sudo ninja install)
22 # build script must start in this subdir
26 echo "--> prescan-alarm-go-ubuntu.sh ends"