#!/usr/bin/env bash set -e echo "Hikvision ISUP client - Raspberry Pi 5 / Ubuntu 24.04 setup" if [ -f /etc/os-release ]; then . /etc/os-release; echo "distro: $PRETTY_NAME"; fi echo "arch: $(uname -m)" # aarch64 on Pi5, x86_64 on dev host need=(gcc make git) for t in "${need[@]}"; do command -v "$t" >/dev/null || { echo "installing $t"; sudo apt-get update && sudo apt-get install -y "$t"; }; done command -v aarch64-linux-gnu-gcc >/dev/null && echo "aarch64 cross-compiler present" echo "next: drop the aarch64 libHCNetSDK.so (+ deps) into ./libs, then run: make" echo " or test without SDK: make simulate && make test"