Ask Your Question

jzeimen's profile - activity

2014-04-06 22:47:08 -0600 received badge  Teacher (source)
2013-04-06 14:38:23 -0600 answered a question unable to build 2.4 w/ Java support on OSX

There was a pull request on github that fixed this issue for me. https://github.com/Itseez/opencv/pull/753 It appears to have been committed to the main repo. So it should be resolved.

2013-04-03 17:39:37 -0600 asked a question unable to build 2.4 w/ Java support on OSX

I am trying to follow the guide here: http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html

I can follow the instructions exactly I type these exact commands into a command window:

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

It will get about 80 percent done then offer this error:

[ 86%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/contrib.cpp.o
Linking CXX shared library ../../lib/libopencv_java244.dylib
ld: unknown option: -whole-archive
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Anyone know how to fix this or is it just a bug. If i instead clone to 2.4.3 and manually enable java it appears to work... This is my first project trying to use the library so I'm not exactly sure what to expect.

2013-03-22 19:25:15 -0600 answered a question Build OpenCV for Java on Ubuntu 12.10

I have java-7-oracle installed on my ubuntu box and had the same problem. So I ran:

export JAVA_HOME=/usr/lib/jvm/java-7-oracle/

then I ran the cmake command again. And it appears to get further. I am still running into issues while making, but they me be unrelated.

2013-03-22 19:20:57 -0600 received badge  Supporter (source)