I am attempting to install OpenCV on Ubuntu. When running
sudo cmake -DWITH_IPP=ON . && make -j $(nproc) && make install
I get the error:
Install the project...
-- Install configuration: "RELEASE"
-- Up-to-date: /usr/local/share/OpenCV/3rdparty/lib/libippicv.a
CMake Error at cmake_install.cmake:36 (FILE):
file INSTALL cannot set permissions on
"/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"
Whats going wrong and how can I fix this problem?
The sudo only applies to the first command out of the three. Really, you only want to run the install step as root, so put sudo on the third command instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With