fix 4.x links
This commit is contained in:
@@ -26,9 +26,9 @@ sudo apt install -y wget unzip
|
||||
# [wget]
|
||||
|
||||
# [download]
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
|
||||
unzip opencv.zip
|
||||
mv opencv-master opencv
|
||||
mv opencv-4.x opencv
|
||||
# [download]
|
||||
|
||||
# [prepare]
|
||||
|
||||
@@ -27,7 +27,7 @@ sudo apt install -y git
|
||||
|
||||
# [download]
|
||||
git clone https://github.com/opencv/opencv.git
|
||||
git -C opencv checkout master
|
||||
git -C opencv checkout 4.x
|
||||
# [download]
|
||||
|
||||
# [prepare]
|
||||
|
||||
@@ -12,14 +12,14 @@ fi
|
||||
sudo apt update && sudo apt install -y cmake g++ wget unzip
|
||||
|
||||
# Download and unpack sources
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
|
||||
unzip opencv.zip
|
||||
|
||||
# Create build directory
|
||||
mkdir -p build && cd build
|
||||
|
||||
# Configure
|
||||
cmake ../opencv-master
|
||||
cmake ../opencv-4.x
|
||||
|
||||
# Build
|
||||
cmake --build .
|
||||
|
||||
@@ -12,8 +12,8 @@ fi
|
||||
sudo apt update && sudo apt install -y cmake g++ wget unzip
|
||||
|
||||
# Download and unpack sources
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
|
||||
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/master.zip
|
||||
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
|
||||
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.x.zip
|
||||
unzip opencv.zip
|
||||
unzip opencv_contrib.zip
|
||||
|
||||
@@ -21,7 +21,7 @@ unzip opencv_contrib.zip
|
||||
mkdir -p build && cd build
|
||||
|
||||
# Configure
|
||||
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-master/modules ../opencv-master
|
||||
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-4.x/modules ../opencv-4.x
|
||||
|
||||
# Build
|
||||
cmake --build .
|
||||
|
||||
Reference in New Issue
Block a user