Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv_xx.jar not found

I successfully installed and compiled the opencv on centos using the following method but I cant find any opencv_xxx.jar files anywhere ? that's why I think when I run the DetectFaceDemo.java program I get error "package org.opencv.core does not exist" and I have defined JAVA_HOME to a valid jdk environment before the cmake and make steps.

1.install all the required packages using yum

yum groupinstall "Development Tools"

yum install gcc

yum install cmake

yum install git

yum install gtk2-devel

yum install pkgconfig

yum install numpy

yum install ffmpeg

2.Create working directory and check out the source code

mkdir /opt/working

cd /opt/working

git clone https://github.com/Itseez/opencv.git

cd opencv

git checkout tags/2.4.8.2

3.Create the Makefile

mkdir release

cd release

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

4.Build and install

cd /opt/working/opencv/release

make

make install