How to create opencv-247.jar on Linux

I tried to do it this way. But he did not create opencv-247.jarfile in opencv-2 opencv-2.4.8 / build / bin directory.please any suggestion.

$ cd opencv-2.4.7

$ mkdir build

$ cd build/

$ cmake -G "Unix Makefiles" -D CMAKE_CXX_COMPILER=/usr/bin/g++CMAKE_C_COMPILER=/usr    
 /bin/gcc -D WITH_CUDA=ON .. 

$make -j4 

$ make install
+3
source share
2 answers

You are trying to do opencv 2.4.7:

$ cd opencv-2.4.7

Another suggestion:

Your procedure is different from the proposed procedure on github.

I think you can accomplish your task with this example:

cd ~/dev
git clone git://github.com/Itseez/opencv.git
cd opencv
git checkout 2.4
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=OFF ..
make -j8

For complete information, follow this link.

+2
source

Download and unzip OpenCV for Linux, then cdto the extracted folder.

Then:

mkdir release
cd release
cmake -DBUILD_SHARED_LIBS=OFF ..
make -j8

release/lib release/binlibopencv_javaXYZ.so opencv-XYZ.jar .

. , cmake build-essential - .

+2

All Articles