Ask Your Question
0

Build problem win 64 Visual Studio 2013 (v120) opencv 3.0.0

asked 2015-05-05 01:41:47 -0600

sirop gravatar image

Hallo,

i have a build problem with tests on my Win 7 64 with Visual Studio 2013 (v120). The compiler output is:

Error   3   error LNK2019: unresolved external symbol "int __cdecl cv::hal::LU(double *,unsigned __int64,int,double *,unsigned __int64,int)" (?LU@hal@cv@@YAHPEAN_KH01H@Z) referenced in function "public: bool __cdecl cv::internal::Matx_FastInvOp<double,4>::operator()(class cv::Matx<double,4,4> const &,class cv::Matx<double,4,4> &,int)const " (??R?$Matx_FastInvOp@N$03@internal@cv@@QEBA_NAEBV?$Matx@N$03$03@2@AEAV32@H@Z)    C:\OpenCV\opencv\build\modules\world\test_affine3.obj   opencv_test_calib3d
Error   4   error LNK2019: unresolved external symbol "bool __cdecl cv::hal::Cholesky(double *,unsigned __int64,int,double *,unsigned __int64,int)" (?Cholesky@hal@cv@@YA_NPEAN_KH01H@Z) referenced in function "public: bool __cdecl cv::internal::Matx_FastInvOp<double,4>::operator()(class cv::Matx<double,4,4> const &,class cv::Matx<double,4,4> &,int)const " (??R?$Matx_FastInvOp@N$03@internal@cv@@QEBA_NAEBV?$Matx@N$03$03@2@AEAV32@H@Z)  C:\OpenCV\opencv\build\modules\world\test_affine3.obj   opencv_test_calib3d

I pasted my CmakeCache to http://pastebin.com/Ljk75sbF .

Thanks for your answers in advance.

Regards Boris

edit retag flag offensive close merge delete

Comments

there's a fairly new 'hal' module, the opencv_test_calib3d is obviously depending on that, but failed to link opencv_hal300.lib.

(that was the easy part.)

how and when did you download opencv3.0 ? tried an update / fresh pull ?

berak gravatar imageberak ( 2015-05-05 05:13:02 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-05-08 10:43:33 -0600

wpro gravatar image

I added an explicit link to opencv_hal300d.lib for two projects that I had with unresolved externals - which solved the problem

opencv_test_calib3d

opencv_test_core

this was a quick fix, I'm not as familiar to how it applies to the build configurations, there may be a more general solution.

edit flag offensive delete link more

Comments

so, did you try with cmake before, and it missed the hal dependancy, too ?

berak gravatar imageberak ( 2015-05-08 10:51:24 -0600 )edit
0

answered 2015-05-05 11:30:59 -0600

sirop gravatar image

the lastest commit of my version seems to be e01b485ac65c72ae5fdf4631fb18c I cloned the repo two days ago, on 03.05.2015.

Just tried to exclude BUILD_opencv_world and then I got no linking errors .

Shall I report this issue as a bug?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-05-05 01:41:47 -0600

Seen: 643 times

Last updated: May 05 '15