mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 07:54:43 +01:00
Move docker installation scripts to virtualization/Docker path. Splits out openalpr to seperate script. (#5676)
This commit is contained in:
committed by
Paulus Schoutsen
parent
89ec752064
commit
8247acb7b9
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# Sets up openalpr.
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
PACKAGES=(
|
||||
# homeassistant.components.image_processing.openalpr_local
|
||||
libopencv-dev libtesseract-dev libleptonica-dev liblog4cplus-dev
|
||||
)
|
||||
|
||||
apt-get install -y --no-install-recommends ${PACKAGES[@]}
|
||||
|
||||
# Clone the latest code from GitHub
|
||||
git clone https://github.com/openalpr/openalpr.git /usr/local/src/openalpr
|
||||
|
||||
# Setup the build directory
|
||||
cd /usr/local/src/openalpr/src
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
# Setup the compile environment
|
||||
cmake -DWITH_TEST=FALSE -DWITH_BINDING_JAVA=FALSE --DWITH_BINDING_PYTHON=FALSE --DWITH_BINDING_GO=FALSE -DWITH_DAEMON=FALSE -DCMAKE_INSTALL_PREFIX:PATH=/usr/local ..
|
||||
|
||||
# compile the library
|
||||
make
|
||||
|
||||
# Install the binaries/libraries to your local system (prefix is /usr/local)
|
||||
make install
|
||||
Reference in New Issue
Block a user