Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv_contrib CMake build error in Windows10

Hi I have some errors while build the opencv. First, I included Qt, VTK, Eigen, glog, and gflags, and the error occurred in the opencv_extra module. The compiler used VS2015 64bit.

Below is the output from the build and CMakeCached.txt

link text

link text

and error is:

  • Severity Code Description Project File Line Suppression State Error LNK1181 cannot open input file '....\lib\Release\opencv_cvv331.lib' opencv_test_cvv E:\library\opencv-master\build-x64\modules\cvv\LINK 1

  • Severity Code Description Project File Line Suppression State Error C2001 newline in constant opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 255

  • Severity Code Description Project File Line Suppression State Error C2001 newline in constant opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 259

  • Severity Code Description Project File Line Suppression State Error C2143 syntax error: missing ';' before '}' opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 256

  • Severity Code Description Project File Line Suppression State Error C2146 syntax error: missing ';' before identifier 'str' opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 260

If you add Qt, you will get this error. What is the problem?

Thank you.

opencv_contrib CMake build error in Windows10

Hi I have some errors while build the opencv. First, I included Qt, VTK, Eigen, glog, and gflags, and the error occurred in the opencv_extra module. The compiler used VS2015 64bit.

Below is the output from the build and CMakeCached.txt

link text

link text

and error is:

  • Severity Code Description Project File Line Suppression State Error LNK1181 cannot open input file '....\lib\Release\opencv_cvv331.lib' opencv_test_cvv E:\library\opencv-master\build-x64\modules\cvv\LINK 1

  • Severity Code Description Project File Line Suppression State Error C2001 newline in constant opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 255

  • Severity Code Description Project File Line Suppression State Error C2001 newline in constant opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 259

  • Severity Code Description Project File Line Suppression State Error C2143 syntax error: missing ';' before '}' opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 256

  • Severity Code Description Project File Line Suppression State Error C2146 syntax error: missing ';' before identifier 'str' opencv_cvv E:\library\opencv_contrib-master\modules\cvv\src\stfl\stringutils.cpp 260

If you add Qt, you will get this error. What is the problem?

Thank you.