mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-21 00:06:44 +01:00
Update libusb version to v1.0.26 in Dockerfile (#7585)
This commit is contained in:
parent
731743c7e5
commit
ef6b464d0e
@ -71,22 +71,22 @@ ENV CCACHE_MAXSIZE 2G
|
|||||||
|
|
||||||
# Build libUSB without udev. Needed for Openvino NCS2 support
|
# Build libUSB without udev. Needed for Openvino NCS2 support
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
RUN apt-get update && apt-get install -y unzip build-essential automake libtool ccache
|
RUN apt-get update && apt-get install -y unzip build-essential automake libtool ccache pkg-config
|
||||||
RUN --mount=type=cache,target=/root/.ccache wget -q https://github.com/libusb/libusb/archive/v1.0.25.zip -O v1.0.25.zip && \
|
RUN --mount=type=cache,target=/root/.ccache wget -q https://github.com/libusb/libusb/archive/v1.0.26.zip -O v1.0.26.zip && \
|
||||||
unzip v1.0.25.zip && cd libusb-1.0.25 && \
|
unzip v1.0.26.zip && cd libusb-1.0.26 && \
|
||||||
./bootstrap.sh && \
|
./bootstrap.sh && \
|
||||||
./configure CC='ccache gcc' CCX='ccache g++' --disable-udev --enable-shared && \
|
./configure CC='ccache gcc' CCX='ccache g++' --disable-udev --enable-shared && \
|
||||||
make -j $(nproc --all)
|
make -j $(nproc --all)
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends libusb-1.0-0-dev && \
|
apt-get install -y --no-install-recommends libusb-1.0-0-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /opt/libusb-1.0.25/libusb
|
WORKDIR /opt/libusb-1.0.26/libusb
|
||||||
RUN /bin/mkdir -p '/usr/local/lib' && \
|
RUN /bin/mkdir -p '/usr/local/lib' && \
|
||||||
/bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib' && \
|
/bin/bash ../libtool --mode=install /usr/bin/install -c libusb-1.0.la '/usr/local/lib' && \
|
||||||
/bin/mkdir -p '/usr/local/include/libusb-1.0' && \
|
/bin/mkdir -p '/usr/local/include/libusb-1.0' && \
|
||||||
/usr/bin/install -c -m 644 libusb.h '/usr/local/include/libusb-1.0' && \
|
/usr/bin/install -c -m 644 libusb.h '/usr/local/include/libusb-1.0' && \
|
||||||
/bin/mkdir -p '/usr/local/lib/pkgconfig' && \
|
/bin/mkdir -p '/usr/local/lib/pkgconfig' && \
|
||||||
cd /opt/libusb-1.0.25/ && \
|
cd /opt/libusb-1.0.26/ && \
|
||||||
/usr/bin/install -c -m 644 libusb-1.0.pc '/usr/local/lib/pkgconfig' && \
|
/usr/bin/install -c -m 644 libusb-1.0.pc '/usr/local/lib/pkgconfig' && \
|
||||||
ldconfig
|
ldconfig
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user