opencv-java / opencv-java-tutorials

Source for the OpenCV with Java tutorials
135 stars 62 forks source link

Brew installation doesn't work with OS X High Sierra #11

Closed mathieu-chauvet closed 7 years ago

mathieu-chauvet commented 7 years ago

I've followed the installation steps for OS X but it doesn't generate the jar files.

Here is the trace from the installation

brew install --build-from-source opencv Updating Homebrew... ==> Auto-updated Homebrew! Updated Homebrew from 0cec599b2 to 4d02b96c6. Updated 1 tap (homebrew/core). ==> Updated Formulae erlang ✔ clinfo goofys nghttp2 sccache go ✔ docfx gopass nginx scipy node ✔ fswatch jhipster node-build telegraf ansible get_iplayer lastpass-cli opencv terraform apibuilder-cli go@1.8 maven openjazz tor app-engine-go-64 goad mongodb percona-server-mongodb wildfly-as bear godep nats-streaming-server prometheus chronograf goenv neo4j pwntools

==> Downloading https://github.com/opencv/opencv/archive/3.3.1.tar.gz ==> Downloading from https://codeload.github.com/opencv/opencv/tar.gz/3.3.1 ######################################################################## 100,0% ==> Downloading https://github.com/opencv/opencv_contrib/archive/3.3.1.tar.gz ==> Downloading from https://codeload.github.com/opencv/opencv_contrib/tar.gz/3.3.1 ######################################################################## 100,0% ==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/3.3.1 ==> make ==> make install 🍺 /usr/local/Cellar/opencv/3.3.1: 518 files, 90.9MB, built in 11 minutes 46 seconds

After that :ls /usr/local/Cellar/opencv/3.3.1/share/OpenCV/ OpenCVConfig-version.cmake OpenCVModules-release.cmake haarcascades valgrind.supp OpenCVConfig.cmake OpenCVModules.cmake lbpcascades valgrind_3rdparty.supp

Nothing in the directory

luigidr commented 7 years ago

Hi,

thanks for opening this issue. By looking at the trace, there is no mention about Java, in fact.

Could you confirm that:

I tried the procedure with Java 8 on High Sierra, but with OpenCV 3.3.0. I will try again and I will let you know.

mathieu-chauvet commented 7 years ago

Hi,

Thanks for your answer.

I do confirm that JDK8 is installed and working. I edited the opencv formula and modified -DBUILD_opencv_java=ON There is no Java folder.

Thanks again for your help!

mathieu-chauvet commented 7 years ago

I've tried it with the "compile from source" method and it works well on both versions 3.3.0 and 3.3.1 Thank you for this great documentation !

luigidr commented 7 years ago

Good to know that you solved.

In any case, I will try again with Homebrew and High Sierra this evening and I will update the documentation, if needed.

luigidr commented 7 years ago

I uninstalled OpenCV 3.3.0 and successfully installed OpenCV 3.3.1 with Homebrew, by following the guide.

Please notice that I had ant installed on my Mac. This may be a needed dependency, I will update the documentation accordingly.