Showing error while running cmake in ubuntu

asked 2016-03-11 06:48:05 -0600

     I am a beginner in image processing with hadoop? While following the command as specified in the blog [link text](https://techgimmick.wordpress.com/2015/06/24/how-to-use-opencv-with-hadoop-or-hipi-hadoop-image-processing-interface/comment-page-1/#comment-62)
       It shows the following error...

hduser@ubuntu:~/build$ cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_VTK=ON ..

CMake Error: The source directory "/home/hduser" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI.

edit retag flag offensive close merge delete

Comments

the very last arg (currently ..) should point to the opencv src dir

berak gravatar imageberak ( 2016-03-11 07:04:48 -0600 )edit

also, assuming, this is meant to run as a headless java process, i would skip all of -D BUILD_NEW_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_VTK=ON

instead, you should add -D BUILD_SHARED_LIBS=OFF to make a statically linked opencv_java.so

berak gravatar imageberak ( 2016-03-11 07:09:09 -0600 )edit