setup.sh 630 B

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