unzip opencv-3.1.0.zip
git clone https://github.com/opencv/opencv_contrib
cd opencv-3.1.0
mkdir build
cd build cmake -D CMAKE_BUILD_TYPE=RELEASE -D
CMAKE_INSTALL_PREFIX=/usr/local -D
OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
An error occurred when executing the above command.
Error Statement CMake Error at samples/gpu/CMakeLists.txt:100 (list):
Configuring incomplete, errors occurred! See also "/home/user/support/src/opencv/opencv-3.1.0/build/CMakeFiles/CMakeOutput.log". See also "/home/user/support/src/opencv/opencv-3.1.0/build/CMakeFiles/CMakeError.log".
list sub-command REMOVE_ITEM requires list to be present.