Can't find xfeatures2d.hpp
When installing opencv 3.0 and opencv_contrib, i just follow the tutorial using linux command and get the source code from github. Both are installed successfully, but when i write:
#include "opencv2/xfeatures2d"
It turns out opencv can not find the file. When I refer to the path usr/local/include/, I can not find this file myself too. Since everything complied successfully, I dont know what is wrong with this file.
did you run a final
make install
?What command are you using to compile?
also try
#include <opencv2/xfeatures2d.hpp>
Maby You haven't installed opencv properly. Haave You specified path to contrib module before runing cmake? (do as they write in readme me).
In my programs I include the fallowing from opencv :
Seems like a similar problem I am stuck with.
I installed the opencv_contrib using cmake-gui(WINDOWS 8) and i am having the same problem(I cannot include any of these new files )... I checked the "opencv\build\include" folder there is a new CMakeFIles directory but no recently modified file in the "opencv" or "opencv2" directory...
Most probably I am getting this problem because of the following reason: I could't understand the 7th step of the readme --> build the opencv core with the method you chose (make and make install if you chose Unix makfile at step 6)
Please can anyone explain this step?
@Bhatt, on win, you will have to build the INSTALL project. this will copy headers/libs/dlls to your install folder
@Wilk, Thank you... that did the thing.....
Have the same problem, please can you explain what "you will have to build the INSTALL project" exactly means?
cmake generated an
opencv.sln
, which contains anINSTALL
project, and you need to build this (from visualstudio)@Bhatt: Thxs for fast response! Do you know what to do if I compiled opencv+contrib with mingw530 from qt?