vendor: OpenCV 5.0.0 snapshot at 40738fb16ceddb5fb3fea747585f7ce6abb0605b
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
# This file contains documentation snippets for Linux installation tutorial
|
||||
if [ "$1" = "--check" ] ; then
|
||||
sudo()
|
||||
{
|
||||
command $@
|
||||
}
|
||||
fi
|
||||
|
||||
sudo apt update
|
||||
|
||||
# [clang]
|
||||
sudo apt install -y clang
|
||||
# [clang]
|
||||
|
||||
# [ninja]
|
||||
sudo apt install -y ninja-build
|
||||
# [ninja]
|
||||
|
||||
# [cmake]
|
||||
sudo apt install -y cmake
|
||||
# [cmake]
|
||||
|
||||
# [git]
|
||||
sudo apt install -y git
|
||||
# [git]
|
||||
|
||||
# [download]
|
||||
git clone https://github.com/opencv/opencv.git
|
||||
git -C opencv checkout 5.x
|
||||
# [download]
|
||||
|
||||
# [prepare]
|
||||
mkdir -p build && cd build
|
||||
# [prepare]
|
||||
|
||||
# [configure]
|
||||
cmake -GNinja ../opencv
|
||||
# [configure]
|
||||
|
||||
# [build]
|
||||
ninja
|
||||
# [build]
|
||||
|
||||
# [install]
|
||||
sudo ninja install
|
||||
# [install]
|
||||
Reference in New Issue
Block a user