Ask Your Question

Revision history [back]

Error Compiling Traincascade in OpenCV 3.0

Hi All,

I am using Archlinux and successfully compile OpenCV 3.0. Then, I want to learn about traincascade and try to compile it via Eclipse. I've follow instruction how to use OpenCV in Eclipse, but I got this Error when try to Build All.

/usr/local/include/opencv2/core/private.hpp:48:4: error: #error this is a private header which should not be used from outside of the OpenCV library
#  error this is a private header which should not be used from outside of the OpenCV library
^
subdir.mk:51: recipe for target 'old_ml_boost.o' failed
make: *** [old_ml_boost.o] Error 1

After searching about this error in any forums, many answers leads to comment off line that use it. But, if I implement that, it generates another error. Here is the example:

../old_ml_precomp.hpp:356:67: error: ‘Split’ has not been declared
     DTreeBestSplitFinder( const DTreeBestSplitFinder& finder, Split );
                                                               ^
../old_ml_precomp.hpp:358:39: error: ‘BlockedRange’ does not name a type
     virtual void operator()(const BlockedRange& range);
                                   ^
../old_ml_precomp.hpp:371:77: error: ‘Split’ has not been declared
     ForestTreeBestSplitFinder( const ForestTreeBestSplitFinder& finder, Split );
                                                                         ^
../old_ml_precomp.hpp:372:39: error: ‘BlockedRange’ does not name a type
     virtual void operator()(const BlockedRange& range);
                                   ^
subdir.mk:51: recipe for target 'old_ml_boost.o' failed
make: *** [old_ml_boost.o] Error 1

Please help me.

Thank you.