libusb
This commit is contained in:
parent
3cdab16975
commit
a5d5a29b0f
@ -5,20 +5,16 @@ source <(curl -s https://git.community-scripts.org/community-scripts/ProxmoxVED/
|
|||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://frigate.video/
|
# Source: https://frigate.video/
|
||||||
|
|
||||||
# App Default Values
|
|
||||||
APP="Frigate"
|
APP="Frigate"
|
||||||
var_tags="${var_tags:-nvr}"
|
var_tags="${var_tags:-nvr}"
|
||||||
var_cpu="${var_cpu:-4}"
|
var_cpu="${var_cpu:-4}"
|
||||||
var_ram="${var_ram:-4096}"
|
var_ram="${var_ram:-4096}"
|
||||||
var_disk="${var_disk:-20}"
|
var_disk="${var_disk:-20}"
|
||||||
var_os="${var_os:-debian}"
|
var_os="${var_os:-debian}"
|
||||||
var_version="${var_version:-11}"
|
var_version="${var_version:-12}"
|
||||||
var_unprivileged="${var_unprivileged:-0}"
|
var_unprivileged="${var_unprivileged:-0}"
|
||||||
|
|
||||||
# App Output
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
|
|
||||||
# Core
|
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
@ -113,29 +113,29 @@ else
|
|||||||
msg_ok "Skipped Semantic Search Setup"
|
msg_ok "Skipped Semantic Search Setup"
|
||||||
fi
|
fi
|
||||||
msg_info "Building and Installing libUSB without udev"
|
msg_info "Building and Installing libUSB without udev"
|
||||||
wget -qO /tmp/libusb.zip https://github.com/libusb/libusb/archive/v1.0.26.zip
|
wget -qO /tmp/libusb.zip https://github.com/libusb/libusb/archive/v1.0.29.zip
|
||||||
unzip -q /tmp/libusb.zip -d /tmp/
|
unzip -q /tmp/libusb.zip -d /tmp/
|
||||||
cd /tmp/libusb-1.0.26
|
cd /tmp/libusb-1.0.29
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
./configure --disable-udev --enable-shared
|
./configure --disable-udev --enable-shared
|
||||||
make -j$(nproc --all)
|
make -j$(nproc --all)
|
||||||
make install
|
make install
|
||||||
ldconfig
|
ldconfig
|
||||||
rm -rf /tmp/libusb.zip /tmp/libusb-1.0.26
|
rm -rf /tmp/libusb.zip /tmp/libusb-1.0.29
|
||||||
msg_ok "Installed libUSB without udev"
|
msg_ok "Installed libUSB without udev"
|
||||||
|
|
||||||
msg_info "Installing Coral Object Detection Model (Patience)"
|
msg_info "Installing Coral Object Detection Model (Patience)"
|
||||||
cd /opt/frigate
|
cd /opt/frigate
|
||||||
export CCACHE_DIR=/root/.ccache
|
export CCACHE_DIR=/root/.ccache
|
||||||
export CCACHE_MAXSIZE=2G
|
export CCACHE_MAXSIZE=2G
|
||||||
curl -L -o v1.0.26.zip https://github.com/libusb/libusb/archive/v1.0.26.zip
|
curl -L -o v1.0.29.zip https://github.com/libusb/libusb/archive/v1.0.29.zip
|
||||||
unzip -q v1.0.26.zip
|
unzip -q v1.0.29.zip
|
||||||
rm v1.0.26.zip
|
rm v1.0.29.zip
|
||||||
cd libusb-1.0.26
|
cd libusb-1.0.29
|
||||||
$STD ./bootstrap.sh
|
$STD ./bootstrap.sh
|
||||||
$STD ./configure --disable-udev --enable-shared
|
$STD ./configure --disable-udev --enable-shared
|
||||||
$STD make -j $(nproc --all)
|
$STD make -j $(nproc --all)
|
||||||
cd /opt/frigate/libusb-1.0.26/libusb
|
cd /opt/frigate/libusb-1.0.29/libusb
|
||||||
mkdir -p /usr/local/lib
|
mkdir -p /usr/local/lib
|
||||||
$STD /bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib'
|
$STD /bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib'
|
||||||
mkdir -p /usr/local/include/libusb-1.0
|
mkdir -p /usr/local/include/libusb-1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user