Java – How to generate opencv-247 .jar under Linux

How to generate opencv-247 .jar under Linux… here is a solution to the problem.

How to generate opencv-247 .jar under Linux

I’ve tried doing this. But it did not create the opencv-247.jarfile in the opencv-2 opencv-2.4.8/build/bin directory. Please make any suggestions.

$ 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

Solution

You tried to make opencv 2.4.7:

$ cd opencv-2.4.7

Another suggestion:

Your program is different from the one suggested 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

Related Problems and Solutions