build opencv 3.1 world with opencv contrib

asked 2015-12-28 10:57:04 -0600

LBerger gravatar image

Hi,

I have succesfully build opencv 3.1 world without opencv contrib and without CUDA using VS 2013. Now I have added opencv contrib and I cannot build it. Ihave got some errors :

**> LINK : fatal error LNK1104: cannot

open file 'F:\lib\opencv\world\modules\bgsegm\opencv_bgsegm_object.dir\Debug\bgfg_gaussmix.obj'

18>f:\lib\opencv\modules\world\src\precomp.hpp(57): fatal error C1083: cannot open file include : 'opencv2/xfeatures2d/nonfree.hpp' : No such file or directory (F:\lib\opencv\modules\world\src\world_init.cpp)

LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_world310d.lib'**

Any idea to solve this problem?

Thanks in advance

edit retag flag offensive close merge delete

Comments

the second err might go away if you clean your build folder (precompiled header leftovers)

berak gravatar imageberak ( 2015-12-28 11:30:56 -0600 )edit

No it does not work. I have clean solution and regenerate and I have got this error. I have build opencv_bgsegm and error is opencv_world310d.lib is missing. And I have build opencv_world and error is cannot find opencv2/xfeatures2d/nonfree.hpp So I have build opencv_features2d and error is cannot open file opencv_world310d.lib ...

LBerger gravatar imageLBerger ( 2015-12-28 11:57:35 -0600 )edit