-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Windows installation script fails #15872
Copy link
Copy link
Closed
Labels
affected: 3.4category: documentationDocumentation fix or updateDocumentation fix or updategood first issue
Milestone
Description
System information (version)
Following this installation guideline:
https://docs.opencv.org/4.1.2/d3/d52/tutorial_windows_install.html
And the gitbash script fails with the following:
$ ./installOCV.sh
cloning opencv
Cloning into 'opencv'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 262823 (delta 0), reused 0 (delta 0), pack-reused 262819
Receiving objects: 100% (262823/262823), 464.01 MiB | 2.99 MiB/s, done.
Resolving deltas: 100% (183205/183205), done.
Checking out files: 100% (6097/6097), done.
cloning opencv_contrib
Cloning into 'opencv_contrib'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 30602 (delta 5), reused 12 (delta 5), pack-reused 30576
Receiving objects: 100% (30602/30602), 127.44 MiB | 2.67 MiB/s, done.
Resolving deltas: 100% (18926/18926), done.
Checking out files: 100% (2589/2589), done.
mkdir: cannot create directory ‘Build’: File exists
If it is the first time installation:
if [ ! -d "$myRepo/opencv" ]; then
....
mkdir Build
...
and
if [ ! -d "$myRepo/opencv_contrib" ]; then
...
mkdir Build
...
Both try to create the Build/
The second attempt fails and halts the script. Should create the dir only if it does not exists.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affected: 3.4category: documentationDocumentation fix or updateDocumentation fix or updategood first issue