Ask Your Question
0

OpenCV 2.4.7 on Linux 64 does not build Java so and jar

asked 2014-01-29 00:43:13 -0600

MohanNade gravatar image

I have seen the thread "i-can-not-run-the-java-using-opencv-on-linux-64bit".

I have tried OpenCV 2.4.7 on Linux 32 bit and it installed correctly. But when I am trying to build on 64 bit Linux, I do not see the libopencv_java247.so being built. Is there any setting expected to be supplied to generate this or something that can disable its generation?

edit retag flag offensive close merge delete

Comments

1

try

cmake -DWITH_opencv_java

(you'll also need javasdk + ant)

berak gravatar imageberak ( 2014-01-29 02:55:38 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-02-03 01:43:55 -0600

MohanNade gravatar image

There were couple of issues in the whole setup

  1. ANT was missing. I had not added that initially because did not see any specific instruction or missed it.
  2. Python library was not configured. - used "ldd /usr/local/bin/python" to understand the config and used it correctly.

regards, Mohan

edit flag offensive delete link more
1

answered 2014-01-29 21:46:48 -0600

yash101 gravatar image

I typically configure the build with ccmake, cmake-curses-gui.

In your temporary release folder, just type ccmake .. You can then set up everything with an interface built for humans.

I like ccmake because i dislike when I have to pass a hundred parameters to a single command, via the terminal!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-29 00:43:13 -0600

Seen: 741 times

Last updated: Feb 03 '14