mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
764 B
58 lines
764 B
#!/bin/bash |
|
# This file contains documentation snippets for Linux installation tutorial |
|
if [ "$1" = "--check" ] ; then |
|
sudo() |
|
{ |
|
command $@ |
|
} |
|
fi |
|
|
|
sudo apt update |
|
|
|
# [gcc] |
|
sudo apt install -y g++ |
|
# [gcc] |
|
|
|
# [make] |
|
sudo apt install -y make |
|
# [make] |
|
|
|
# [cmake] |
|
sudo apt install -y cmake |
|
# [cmake] |
|
|
|
# [wget] |
|
sudo apt install -y wget unzip |
|
# [wget] |
|
|
|
# [download] |
|
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip |
|
unzip opencv.zip |
|
mv opencv-4.x opencv |
|
# [download] |
|
|
|
# [prepare] |
|
mkdir -p build && cd build |
|
# [prepare] |
|
|
|
# [configure] |
|
cmake ../opencv |
|
# [configure] |
|
|
|
# [build] |
|
make -j4 |
|
# [build] |
|
|
|
# [check] |
|
ls bin |
|
ls lib |
|
# [check] |
|
|
|
# [check cmake] |
|
ls OpenCVConfig*.cmake |
|
ls OpenCVModules.cmake |
|
# [check cmake] |
|
|
|
# [install] |
|
sudo make install |
|
# [install]
|
|
|