thermalcam_decoder/run_live.sh

14 lines
366 B
Bash
Raw Normal View History

2024-02-15 00:30:29 +02:00
#!/bin/bash
cd $(dirname $0)
set -e
# Python works but stutters
#sudo ./venv/bin/python ./decode.py --live
cargo build --release
TARGET=./target/release/thermaldecoder
# setcap does not work yet (EPERM on socket AF_PACKET)
# sudo setcap cap_net_raw,cap_net_admin=eip $TARGET
2024-02-17 17:21:01 +02:00
#sudo strace -f -o live.strace $TARGET /dev/video0
sudo RUST_BACKTRACE=full $TARGET "$@"