Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Operating System: #! (crunch bang) Dependencies: opencv

I am attempting to install cvblob (a library for opencv) and I am at the compilation stage in the directions that of which can be seen below. When I compiled and installed the source code for opencv which directory would be the install directory, the directory in which I unzipped and compiled the source, or some other directory such as /usr/local/lib? I'm familiar with installing applications in Windows, but I don't seem to see the translation to linux. For opencv I compiled code and then ran sudo make install from within that directory. So for the the line in the directions below

To indicate where OpenCV is, use OpenCV_DIR variable:

`cmake . -DOpenCV_DIR=<path_to_OpenCV>`

What should I define as the path to opencv? If further information is needed please let me know. DIRECTIONS:


If you have uncompressed the source in $CVBLOB, type in a console:

cmake .

To indicate where OpenCV is, use OpenCV_DIR variable:

cmake . -DOpenCV_DIR=<path_to_OpenCV>

Installation Linux

If you have compiled the source in $CVBLOBBIN, type in a console:

sudo make install

To change the destination path use CMAKE_INSTALL_PREFIX when execute CMAKE:

cmake . -DCMAKE_INSTALL_PREFIX=<installation_path>
share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Looking at github you should have it installed in /usr/local/ Check what you have got there!

share|improve this answer
Thanks I'll give it a look. –  arete Jun 11 '13 at 21:00
add comment

To install OpenCV using the terminal on Ubuntu from this article http://namhuy.net/1205/how-to-install-opencv-on-ubuntu.html

$ su -
# apt-get update
# apt-get install build-essential
# apt-get install libavformat-dev
# apt-get install x264 v4l-utils ffmpeg
# apt-get install libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv opencv-doc libcv-dev libcvaux-dev libhighgui-dev
share|improve this answer
the OP is asking about the folder OpenCV installed in –  Lưu Vĩnh Phúc Oct 24 '13 at 11:39
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.