Ask Your Question

kosongduadua's profile - activity

2015-12-25 20:32:09 -0600 answered a question Error Compiling Traincascade in OpenCV 3.0

Hi All,

I can solved this error by editing private.hpp in opencv2/core/private.hpp and remove this line

#ifndef __OPENCV_BUILD
#  error this is a private header which should not be used from outside of the OpenCV library
#endif

Thanks,

2015-12-13 06:18:26 -0600 commented question Error Compiling Traincascade in OpenCV 3.0

Hi,

After do what you suggest, can I modify traincascade code? I want to make some modification in traincascade later

2015-12-13 05:47:11 -0600 asked a question 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.