You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/07/06 20:33:34 UTC

[GitHub] jimhester commented on issue #11098: Installation instructions MacOS/R/CPU don't work.

jimhester commented on issue #11098: Installation instructions MacOS/R/CPU don't work.
URL: https://github.com/apache/incubator-mxnet/issues/11098#issuecomment-403139767
 
 
   In order to use the mxnet cpu binary available at https://mxnet.incubator.apache.org/install/index.html?platform=MacOS&language=R&processor=CPU I needed to compile opencv with `opencv_hdf` and `opencv_text` support (which is not the default for the homebrew bottle currently).
   
   ```diff
   diff --git a/Formula/opencv.rb b/Formula/opencv.rb
   index 1ac968d75e..1a7f05c92a 100644
   --- a/Formula/opencv.rb
   +++ b/Formula/opencv.rb
   @@ -56,9 +56,9 @@ class Opencv < Formula
          -DBUILD_TESTS=OFF
          -DBUILD_TIFF=OFF
          -DBUILD_ZLIB=OFF
   -      -DBUILD_opencv_hdf=OFF
   +      -DBUILD_opencv_hdf=ON
          -DBUILD_opencv_java=OFF
   -      -DBUILD_opencv_text=OFF
   +      -DBUILD_opencv_text=ON
          -DOPENCV_ENABLE_NONFREE=ON
          -DOPENCV_EXTRA_MODULES_PATH=#{buildpath}/opencv_contrib/modules
          -DWITH_1394=OFF
   ```
   
   Then it can be installed with the following and the library can be loaded.
   
   ```shell
   brew install opencv --build-from-source
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services