I have a windows 8.1 PC on a 64 bit machine. I had already installed OpenCV 3.0.0 from source without opencv_contrib. Following the answer by berak- Nonfree module is missing in OpenCV 3.0, I downloaded the contrib and tried building opencv from source again but this time with OPENCV_EXTRA_MODULES option turned on.
During this build process however, I got strange errors from the VS compiler. They were from the file
\modules\line_descriptor\src\binary_descriptor.cpp
The errors were the following on line numbers as follows.
error C2143: syntax error : missing ';' before '=' E:\opencv\opencv-master\opencv_contrib-master\modules\line_descriptor\src\binary_descriptor.cpp line 833
error C2059: syntax error: '>' line 836
error C2143: syntax error : missing ';' before '{' E:\opencv\opencv-master\opencv_contrib-master\modules\line_descriptor\src\binary_descriptor.cpp line 837
error LNK1104: cannot open file '....\lib\Debug\opencv_line_descriptor300d.lib' E:\opencv\opencv-master\build\modules\line_descriptor\LINK opencv_test_line_descriptor
Error 7 error MSB3073: The command "setlocal "C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 INSTALL