I was trying to install opencv. And I followed the steps given in this link.
But, after cloning the directories opencv.git
and opencv_contrib.git
and running the command:
cmake -D BUILD_TIFF=ON -D WITH_CUDA=OFF -D ENABLE_AVX=OFF -D WITH_OPENGL=OFF -D WITH_OPENCL=OFF -D WITH_IPP=OFF -D WITH_TBB=ON -D BUILD_TBB=ON -D WITH_EIGEN=OFF -D WITH_V4L=OFF -D WITH_VTK=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/opt/opencv_contrib/modules /opt/opencv/
I get the above error CMakeLists.txt
does not appear to exist.
What is the solution to this?
Added:I created a new opt folder in home directory which should have been in the root... there was where I made the mistake maybe.
pwd
should output/opt/opencv/release
. You did executecmake
as root, didn't you? Please answer questions by [edit]ing your post rather than using comments. – dessert Dec 31 '17 at 09:40