0

I am using this document as a guide and i ran through this error

Install the project...
-- Install configuration: "RELEASE"
CMake Error at cmake_install.cmake:36 (file):
  file cannot create directory: /installation/OpenCV-/share/licenses/opencv4.
  Maybe need administrative privileges.
2
  • 1
    Is this answer of your question? Commented Feb 13, 2020 at 13:31
  • Yes it does thank you Commented Feb 13, 2020 at 13:51

1 Answer 1

1

I just encountered the same problem as you. I found out that it is not a permission problem, but a path problem of OpenCV installation.

I use the following method for successfully installing OpenCV4.2.0 to my computer.

Change the path:

-D CMAKE_INSTALL_PREFIX = $cwd/installation/OpenCV-4.2.0

To

-D CMAKE_INSTALL_PREFIX = /usr/local

enter image description here

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.