mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
fix 4.x links
This commit is contained in:
@@ -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