title: Building OpenCV with Java Support on Mac OS X (64-bit)
body: <p>Following directions from <a href="http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html" rel="noreferrer">http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html</a>, I am running into the this:</p>
  
  <blockquote>
    <p>make -j8<br>
    ...<br>
    ...<br>
    Linking CXX shared library ../../lib/libopencv_java244.dylib<br>
    ld: unknown option: -whole-archive<br>
    clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>
    make[2]: <strong>* [lib/libopencv_java244.dylib] Error 1<br>
    make[1]: *</strong> [modules/java/CMakeFiles/opencv_java.dir/all] Error 2<br>
    make: *** [all] Error 2<br></p>
  </blockquote>
  
  <p>Any suggestions?</p>