2024-02-15 00:30:29 +02:00
|
|
|
#!/bin/bash
|
|
|
|
cd $(dirname $0)
|
2024-02-17 15:43:20 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Python works but stutters
|
|
|
|
#sudo ./venv/bin/python ./decode.py --live
|
|
|
|
cargo build --release --example live
|
2024-02-17 16:55:53 +02:00
|
|
|
TARGET=./target/release/examples/live
|
|
|
|
# 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
|
2024-02-19 21:53:25 +02:00
|
|
|
sudo RUST_BACKTRACE=full $TARGET "$@"
|