vendor: OpenCV 5.0.0 snapshot at 40738fb16ceddb5fb3fea747585f7ce6abb0605b
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# This file contains documentation snippets for Linux installation tutorial
|
||||
if [ "$1" = "--check" ] ; then
|
||||
sudo()
|
||||
{
|
||||
command $@
|
||||
}
|
||||
fi
|
||||
|
||||
# [body]
|
||||
# Install minimal prerequisites (Ubuntu 18.04 as reference)
|
||||
sudo apt update && sudo apt install -y cmake g++ wget unzip ninja-build
|
||||
|
||||
# Download and unpack sources
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/5.x.zip
|
||||
unzip opencv.zip
|
||||
|
||||
# Create build directory
|
||||
mkdir -p build && cd build
|
||||
|
||||
# Configure
|
||||
cmake -GNinja ../opencv-5.x
|
||||
|
||||
# Build
|
||||
cmake --build .
|
||||
# [body]
|
||||
Reference in New Issue
Block a user