user11528832
user11528832

Reputation:

CMake is throwing an error while Installing OpenCV

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.

Upvotes: 0

Views: 2354

Answers (1)

shuike
shuike

Reputation: 11

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

Upvotes: 1

Related Questions