Opencv 3.0 : Compilation error with xfeatures2d : Where is hal.hpp? [closed]

asked 2015-04-22 04:51:56 -0600

velkouby gravatar image

I tried to compile opencv 3.0 beta with xfeatures2d module and CUDA 7.0. I had this module in module directory (because cmake failed if I use the variable OPENCV_EXTRA_MODULES_PATH)

I had these errors in Visual Studio 2012 :

1>F:\USER\Downloads\opencv-3.0.0-beta\opencv\sources\modules\xfeatures2d\src\sift.cpp(340): error C2653: 'hal' : is not a class or namespace name

1>F:\USER\Downloads\opencv-3.0.0-beta\opencv\sources\modules\xfeatures2d\src\sift.cpp(341): error C2653: 'hal' : is not a class or namespace name

1>F:\USER\Downloads\opencv-3.0.0-beta\opencv\sources\modules\xfeatures2d\src\sift.cpp(342): error C2653: 'hal' : is not a class or namespace name

1>F:\USER\Downloads\opencv-3.0.0-beta\opencv\sources\modules\xfeatures2d\src\sift.cpp(623): error C2653: 'hal' : is not a class or namespace name

1>F:\USER\Downloads\opencv-3.0.0-beta\opencv\sources\modules\xfeatures2d\src\sift.cpp(624): error C2653: 'hal' : is not a class or namespace name

1>F:\USER\Downloads\opencv-3.0.0-beta\opencv\sources\modules\xfeatures2d\src\sift.cpp(625): error C2653: 'hal' : is not a class or namespace name

Then I tried to find hal/hal.hpp, but no file...

SOme one had compiled opencv 3.0 with CUDA and contrib module? Or some one know some thing about this module that I can't find : hal ?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by velkouby
close date 2015-04-22 07:39:58.528568

Comments

2

that's a new Hardware Abstraction Layer. : https://github.com/Itseez/opencv/tree...

it seems, your main opencv repo and the contrib one are not in sync (the contrib one seems newer).

can you try to update your main opencv repo with: git pull upstream master ?

berak gravatar imageberak ( 2015-04-22 05:05:51 -0600 )edit

Thank you, so simple. I have took the main-depot from the self-extracted archive and contrib from Git repo....

velkouby gravatar imagevelkouby ( 2015-04-22 07:38:16 -0600 )edit