I\'ve installed OpenCV on ubuntu using this link and I\'m trying to use SURF descriptor. I knew that they changed the location of these type of descriptors to the nonfree mo
sudo add-apt-repository --yes ppa:xqms/opencv-nonfree sudo apt-get update sudo apt-get install libopencv-nonfree-dev
sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
sudo apt-get update
sudo apt-get install libopencv-nonfree-dev
---this answer works well for me, thanks @Maystro
after this step, just link your program to -lopencv_nonfree, or you cannot access to surf.