Cannot build opencv_core320d.lib in VS2008
I'm trying to build OpenCV3 using CMake-GUI, Visual Studio 2008 (x86), and Windows 10.
After configuring and generating, I try to build in Visual Studio. Some of the libs build but most don't. This includes core. These are just the core errors:
3>------ Build started: Project: opencv_core, Configuration: Debug Win32 ------
3>Compiling...
3>opencv_core_pch.cpp
3>Compiling...
3>opencl_kernels_core.cpp
3>transpose.cl
3>split_merge.cl
3>set_identity.cl
3>repeat.cl
3>reduce2.cl
3>reduce.cl
3>normalize.cl
3>..\..\..\opencv\modules\core\src\opencl\split_merge.cl(103) : fatal error C1189: #error : "No operation"
3>..\..\..\opencv\modules\core\src\opencl\repeat.cl(18) : error C2144: syntax error : 'void' should be preceded by ';'
3>..\..\..\opencv\modules\core\src\opencl\transpose.cl(60) : error C2144: syntax error : 'void' should be preceded by ';'
3>..\..\..\opencv\modules\core\src\opencl\set_identity.cl(56) : error C2144: syntax error : 'void' should be preceded by ';'
3>..\..\..\opencv\modules\core\src\opencl\normalize.cl(30) : error C2144: syntax error : 'void' should be preceded by ';'
3>..\..\..\opencv\modules\core\src\opencl\reduce2.cl(89) : fatal error C1189: #error : "No operation is specified"
3>..\..\..\opencv\modules\core\src\opencl\repeat.cl(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>..\..\..\opencv\modules\core\src\opencl\transpose.cl(60) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>..\..\..\opencv\modules\core\src\opencl\reduce.cl(555) : fatal error C1189: #error : "No operation"
3>..\..\..\opencv\modules\core\src\opencl\set_identity.cl(56) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>..\..\..\opencv\modules\core\src\opencl\normalize.cl(30) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>..\..\..\opencv\modules\core\src\opencl\repeat.cl(18) : error C2065: '__global' : undeclared identifier
3>..\..\..\opencv\modules\core\src\opencl\transpose.cl(60) : error C2065: '__global' : undeclared identifier
3>..\..\..\opencv\modules\core\src\opencl\set_identity.cl(56) : error C2065: '__global' : undeclared identifier
3>..\..\..\opencv\modules\core\src\opencl\normalize.cl(30) : error C2065: '__global' : undeclared identifier
3>..\..\..\opencv\modules\core\src\opencl\repeat.cl(18) : error C2143: syntax error : missing ')' before 'const'
3>..\..\..\opencv\modules\core\src\opencl\repeat.cl(18) : error C2182: 'repeat' : illegal use of type 'void'
3>..\..\..\opencv\modules\core\src\opencl\transpose.cl(60) : error C2143: syntax error : missing ')' before 'const'
3>..\..\..\opencv\modules\core\src\opencl\set_identity.cl(56) : error C2146: syntax error : missing ')' before identifier 'uchar'
3>..\..\..\opencv\modules\core\src\opencl\normalize.cl(30) : error C2143: syntax error : missing ')' before 'const'
3>..\..\..\opencv\modules\core\src\opencl\repeat.cl(19) : error C2059: syntax error : ')'
3>mulspectrums.cl
3>mixchannels.cl
3>minmaxloc.cl
3>..\..\..\opencv\modules\core\src\opencl\transpose.cl(60) : error C2182: 'transpose' : illegal use of type 'void'
3>..\..\..\opencv\modules\core\src\opencl\set_identity.cl(56) : error C2182: 'setIdentity' : illegal use of type 'void'
3>..\..\..\opencv\modules\core\src\opencl\normalize.cl(30) : error C2182: 'normalizek' : illegal use of type ...
ugh, that probably means, you have to do without opencl support. try:
and regenerate your opencv.sln. also clear the build folder from previous artefacts.
tried this - didn't help. same error.. Some of the .cl files are fine btw.
compiling... 7>ImfMatrixAttribute.cpp 6>version_string.inc 6>opencl_kernels_core.cpp 6>transpose.cl 6>split_merge.cl 6>set_identity.cl 6>repeat.cl 6>reduce2.cl 6>reduce.cl 6>.\version_string.inc(1) : error C2059: syntax error : 'string' 6>......\opencv\modules\core\src\opencl\set_identity.cl(56) : error C2144: syntax error : 'void' should be preceded by ';'