I am installing OpenCv using these steps:
Building OpenCV from Source Using CMake, Using the Command Line
Create a temporary directory, which we denote as <cmake_binary_dir>, where you want to put the generated Makefiles, project files as well the object files and output binaries.
Enter the <cmake_binary_dir> and type
cmake [<some optional parameters>] <path to the OpenCV source directory>
For example
cd ~/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
Enter the created temporary directory (<cmake_binary_dir>) and proceed with:
make **<--- Errors here**
sudo make install
**
Once I type "make" I get this error:
**
[ 87%] Build Java tests
Buildfile: /home/svenson/CSci591/OpenCV-2.4.4/release/modules/java/test/.build/build.xml
build:
compile:
[javac] Compiling 104 source files to /home/svenson/CSci591/OpenCV-2.4.4/release/modules/java/test/.build/build/classes
BUILD FAILED
/home/svenson/CSci591/OpenCV-2.4.4/release/modules/java/test/.build/build.xml:55: The following error occurred while executing this line:
/home/svenson/CSci591/OpenCV-2.4.4/release/modules/java/test/.build/build.xml:19: /home/svenson/CSci591/OpenCV-2.4.4/release/modules/java/test/.build/lib does not exist.
Total time: 0 seconds
make[2]: *** [modules/java/test/.build/build/jar/opencv-test.jar] Error 1
make[1]: *** [modules/java/test/CMakeFiles/opencv_test_java.dir/all] Error 2
make: *** [all] Error 2
I am stuck. Please help.