Closed

Description
Hi guys. I'm using OS X Sierra 10.12.1. I have install OpenCV with brew by the following command:
brew install opencv3 --with-contrib --with-ffmpeg --without-numpy --HEAD
When installing torch-opencv with the command:
OpenCV_DIR=/usr/local/Cellar/opencv3/HEAD-ecb8fb9_4/share/OpenCV luarocks install cv
I encountered the following error:
Installing https://raw.githubusercontent.com/torch/rocks/master/cv-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cv-scm-1.rockspec... switching to 'build' mode
Cloning into 'torch-opencv'...
remote: Counting objects: 202, done.
remote: Compressing objects: 100% (180/180), done.
remote: Total 202 (delta 40), reused 76 (delta 19), pack-reused 0
Receiving objects: 100% (202/202), 2.03 MiB | 252.00 KiB/s, done.
Resolving deltas: 100% (40/40), done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/taurandat/frameworks/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/taurandat/frameworks/torch/install/lib/luarocks/rocks/cv/scm-1";
make
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /Users/taurandat/frameworks/torch/install
CMake Warning at CMakeLists.txt:55 (MESSAGE):
BUILD_CUDA is ON, but OpenCV CUDA interface wasn't found. Won't build
OpenCV-CUDA wrappers.
-- Modules to wrap: xphoto, stitching, ximgproc, calib3d, objdetect, video, videoio, superres, photo, optflow, ml, imgproc, flann, features2d, highgui, imgcodecs,
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_cv-scm-1-4163/torch-opencv/build
Scanning dependencies of target Common
[ 2%] Building CXX object CMakeFiles/Common.dir/src/Common.cpp.o
[ 5%] Linking CXX shared library lib/libCommon.dylib
[ 5%] Built target Common
Scanning dependencies of target xphoto
[ 8%] Building CXX object CMakeFiles/xphoto.dir/src/xphoto.cpp.o
/tmp/luarocks_cv-scm-1-4163/torch-opencv/src/xphoto.cpp:8:17: error: no member
named 'autowbGrayworld' in namespace 'cv::xphoto'
cv::xphoto::autowbGrayworld(src.toMat(), dst_mat, thresh);
~~~~~~~~~~~~^
/tmp/luarocks_cv-scm-1-4163/torch-opencv/src/xphoto.cpp:18:17: error: no member
named 'balanceWhite' in namespace 'cv::xphoto'
cv::xphoto::balanceWhite(src.toMat(), dst_mat.mat, algorithmType, in...
~~~~~~~~~~~~^
/tmp/luarocks_cv-scm-1-4163/torch-opencv/src/xphoto.cpp:27:17: error: no member
named 'balanceWhite' in namespace 'cv::xphoto'
cv::xphoto::balanceWhite(src.toMat(), dst_mat.mat, sigma, psize);
~~~~~~~~~~~~^
3 errors generated.
make[2]: *** [CMakeFiles/xphoto.dir/src/xphoto.cpp.o] Error 1
make[1]: *** [CMakeFiles/xphoto.dir/all] Error 2
make: *** [all] Error 2
Error: Build error: Failed building.
Please help.