Ask Your Question
0

problem with cmake during installation

asked 2013-08-18 13:02:58 -0600

deisman gravatar image

Having trouble getting installing opencv on ubuntu 12.0.4. The complication seems to be with cmake, but only shows at the very end of the installation, after it reads 100%. Any ideas?

Synaptic software manager says that cmake is installed, but opencv is not.

Blockquote [ 95%] Built target opencv_test_superres_pch_dephelp [ 96%] Built target pch_Generate_opencv_test_superres [ 96%] Built target opencv_test_superres [ 97%] Built target opencv_videostab_pch_dephelp [ 98%] Built target pch_Generate_opencv_videostab [ 99%] Built target opencv_videostab [ 99%] Built target opencv_haartraining_engine [ 99%] Built target opencv_createsamples [ 99%] Built target opencv_haartraining [ 99%] Built target opencv_performance [100%] Built target opencv_traincascade Install the project... -- Install configuration: "RELEASE" -- Up-to-date: /n/local/include/opencv2/opencv_modules.hpp CMake Error at cmake_install.cmake:36 (FILE): file INSTALL cannot set permissions on "/n/local/include/opencv2/opencv_modules.hpp" Blockquote

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-08-18 21:56:09 -0600

if you performe make install you should probably be root (or set an install directory in your home) otherwise you don't have right to copy files in the system. You could use sudo instead of being root, but compile your libraries as a regular user! Try this:

make
sudo make install
edit flag offensive delete link more

Comments

This is a great answer indeed. Thanks Mathieu Barnachon for saving me.

Waleed El-Badry gravatar imageWaleed El-Badry ( 2018-01-03 00:35:51 -0600 )edit

Question Tools

Stats

Asked: 2013-08-18 13:02:58 -0600

Seen: 3,923 times

Last updated: Aug 18 '13