Error Compiling Traincascade in OpenCV 3.0 [closed]
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.
"...and try to compile it via Eclipse" - yikes !
rather than messing with eclipse, go back to the step, where you compiled opencv, add
-DBUILD_opencv_apps
to the cmake cmdline, and rerun the whole cmake, make, make install thingHi,
After do what you suggest, can I modify traincascade code? I want to make some modification in traincascade later
well, above was the "fast lane" to obtain the binary.
if you want to use eclipse, still generate your project using cmake
I f you want to use Eclipse, you have to generate the project with the correct option, I used something like:
Then, import your project into Eclipse: