Ask Your Question

Revision history [back]

cmake build error for 'trancascade' app

Hi,

I followed https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html, opencv-4.1.1dev to install succesfully opencv on ubuntu16.04.

When i was following https://docs.opencv.org/master/dc/d88/tutorial_traincascade.html to try use traincascade, i couldnt find the 'traincascade' app in my opencv/build/bin, then i checked /opencv/apps/CmakeLists.txt, i found that the line "ocv_add_app(traincascade)" was commented out, then i uncommented it.

back to /opencv/build, i run command "cmake ." without problem, but next i run command "make", there poped out plenty of errors, mainly telling:

old_ml.hpp error CvFileStorage has not been declared old_ml.hpp error CvFileNode has not been declared
old_ml.hpp error read_split has not been declared

Can someone tell how to fix this? thanks in advance!