Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv4.1.1 build error

So I was able to build opencv4.1 (by downloading opencv4.1 and OpenCV-contrib) on ubuntu 16.04 and everything went fine. I also tried searching for the features2d package and was able to locate them under usr/local/include. Though in my case in the home directory I have created a separate folder in which I cloned the OpenCV git repo. Now when I try to build the project as mentioned in the following link(https://github.com/udacity/SFND_2D_Feature_Tracking) I get the following error Fatal error: xfeatures2d.hpp no such file or directory What is strange is that when I go to the home folder in which OpenCV and OpenCV contribs are located I can find these files. Similarly, I can locate the library features2d in the usr/local/lib folder also. I tried to edit the cmakelist.txt file in the project by adding set("OPECV_DIR",/usr/local) but that didn't work. Any suggestions as to what can I do

click to hide/show revision 2
None

updated 2019-09-03 04:15:12 -0600

berak gravatar image

Opencv4.1.1 build error

So I was able to build opencv4.1 (by downloading opencv4.1 and OpenCV-contrib) on ubuntu 16.04 and everything went fine. I also tried searching for the features2d package and was able to locate them under usr/local/include. Though in my case in the home directory I have created a separate folder in which I cloned the OpenCV git repo. Now when I try to build the project as mentioned in the following link(https://github.com/udacity/SFND_2D_Feature_Tracking) link I get the following error Fatal error: xfeatures2d.hpp no such file or directory What is strange is that when I go to the home folder in which OpenCV and OpenCV contribs are located I can find these files. Similarly, I can locate the library features2d in the usr/local/lib folder also. I tried to edit the cmakelist.txt file in the project by adding set("OPECV_DIR",/usr/local) but that didn't work. Any suggestions as to what can I do

click to hide/show revision 3
None

updated 2019-09-03 04:15:44 -0600

berak gravatar image

Opencv4.1.1 build error

So I was able to build opencv4.1 (by downloading opencv4.1 and OpenCV-contrib) on ubuntu 16.04 and everything went fine. I also tried searching for the features2d package and was able to locate them under usr/local/include. Though in my case in the home directory I have created a separate folder in which I cloned the OpenCV git repo. Now when I try to build the project as mentioned in the following link I get the following error error

Fatal error: xfeatures2d.hpp no such file or directory

What is strange is that when I go to the home folder in which OpenCV and OpenCV contribs are located I can find these files. Similarly, I can locate the library features2d in the usr/local/lib folder also. I tried to edit the cmakelist.txt file in the project by adding set("OPECV_DIR",/usr/local) but that didn't work. Any suggestions as to what can I do