Opencv_test_core build Failure

asked 2015-06-06 16:07:11 -0500

ZoranP86 gravatar image

updated 2015-06-11 12:38:11 -0500

Vanilla build of Opencv3 using master from github. All the projects build successfully except for this one.

image description

Anyone have any idea how to resolve this? On my build, I believe it's causing the INSTALL cmake target to not install the shared libs.

Build box details:

  • Windows 8.1
  • Visual Studio 2010
  • CMake 2.8.10.2

Text Copy of the build errors:

Error   11  error LNK1120: 10 unresolved externals  E:\Projects\opencv\Builds\bin\Release\opencv_test_core.exe  opencv_test_core
Error   9   error LNK2019: unresolved external symbol "bool __cdecl cv::hal::Cholesky(double *,unsigned int,int,double *,unsigned int,int)" (?Cholesky@hal@cv@@YA_NPANIH0IH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mat_decomp_Test::Body(void)" (?Body@Core_HAL_mat_decomp_Test@@EAEXXZ)  E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   10  error LNK2019: unresolved external symbol "bool __cdecl cv::hal::Cholesky(float *,unsigned int,int,float *,unsigned int,int)" (?Cholesky@hal@cv@@YA_NPAMIH0IH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mat_decomp_Test::Body(void)" (?Body@Core_HAL_mat_decomp_Test@@EAEXXZ)    E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   7   error LNK2019: unresolved external symbol "int __cdecl cv::hal::LU(double *,unsigned int,int,double *,unsigned int,int)" (?LU@hal@cv@@YAHPANIH0IH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mat_decomp_Test::Body(void)" (?Body@Core_HAL_mat_decomp_Test@@EAEXXZ)    E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   8   error LNK2019: unresolved external symbol "int __cdecl cv::hal::LU(float *,unsigned int,int,float *,unsigned int,int)" (?LU@hal@cv@@YAHPAMIH0IH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mat_decomp_Test::Body(void)" (?Body@Core_HAL_mat_decomp_Test@@EAEXXZ)  E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   1   error LNK2019: unresolved external symbol "void __cdecl cv::hal::exp(double const *,double *,int)" (?exp@hal@cv@@YAXPBNPANH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mathfuncs_Test::Body(void)" (?Body@Core_HAL_mathfuncs_Test@@EAEXXZ)    E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   2   error LNK2019: unresolved external symbol "void __cdecl cv::hal::exp(float const *,float *,int)" (?exp@hal@cv@@YAXPBMPAMH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mathfuncs_Test::Body(void)" (?Body@Core_HAL_mathfuncs_Test@@EAEXXZ)  E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   3   error LNK2019: unresolved external symbol "void __cdecl cv::hal::log(double const *,double *,int)" (?log@hal@cv@@YAXPBNPANH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mathfuncs_Test::Body(void)" (?Body@Core_HAL_mathfuncs_Test@@EAEXXZ)    E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   4   error LNK2019: unresolved external symbol "void __cdecl cv::hal::log(float const *,float *,int)" (?log@hal@cv@@YAXPBMPAMH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mathfuncs_Test::Body(void)" (?Body@Core_HAL_mathfuncs_Test@@EAEXXZ)  E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   5   error LNK2019: unresolved external symbol "void __cdecl cv::hal::sqrt(double const *,double *,int)" (?sqrt@hal@cv@@YAXPBNPANH@Z) referenced in function "private: virtual void __thiscall Core_HAL_mathfuncs_Test::Body(void)" (?Body@Core_HAL_mathfuncs_Test@@EAEXXZ)  E:\Projects\opencv\Builds\modules\world\test_hal_core.obj   opencv_test_core
Error   6   error LNK2019: unresolved external symbol "void __cdecl cv::hal::sqrt(float const *,float *,int)" (?sqrt@hal ...
(more)
edit retag flag offensive close merge delete

Comments

1

would you be so nice, to replace the screenshot with text ?

berak gravatar imageberak ( 2015-06-07 01:02:59 -0500 )edit
1

If I can see it correct, than it seems that it is actually the HAL library that is crashing down. And especially the tests related to that. Since this is very new, I am wondering if their is no way to just manually disable the build of the HAL layer. @berak got any clue there? Is it like build_opencv_HAL=OFF?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-07 03:42:03 -0500 )edit
2

@berak: Sorry, I've added a text version of the errors.

ZoranP86 gravatar imageZoranP86 ( 2015-06-11 12:38:35 -0500 )edit

Anyone have any ideas?

ZoranP86 gravatar imageZoranP86 ( 2015-06-16 12:16:52 -0500 )edit