Hi , i'm trying to run an example of face detection using opencv , C++ , and QT from here : https://github.com/benhoff/opencv when running make i get the following errors
usr/local/include/opencv2/highgui/highgui.hpp:165:5: note: previous declaration ‘cv::<anonymous enum=""> IMREAD_UNCHANGED’ /usr/local/include/opencv2/imgcodecs.hpp error: redeclaration of ‘IMREAD_GRAYSCALE’ /usr/local/include/opencv2/imgcodecs.hpp error: redeclaration of ‘IMREAD_COLOR’ /usr/local/include/opencv2/imgcodecs.hpp:70:28: error: redeclaration of ‘IMREAD_ANYDEPTH’
...................
there are plenty of them
i think the problem is that i have installed firstly opencv 3.0.0 alpha and i want to change it to opencv 2.4.10 so what i have did is deleting manually all libraries and headers in /usr/local/lib and /usr/local/include (that because i haven't found a tutorial explaining how to properly delete opencv or re-install it) and after that i installed opencv 2.4.10
that's is the source of the error but now how can i solve this ??
Any suggestion will be appreciated :)
NB : I'm using ubuntu 14.04 , opencv 2.4.10 , QT 4.8.6