Error while building viz module on Mac (Mavericks) opencv 3.0 beta
I need new features on OpenCV 3.0 beta. The explanation to install it is already here: http://hugofeng.info/2014/04/17/Compi...
When I do make, the following error is up:
I'm trying to sort this error but I can't... http://pastebin.com/DPRdvjvU (I can't paste all the RAW data here).
I've seen similar errors solved because of CUDA or sorting flags, but I didn't get it to work.
do you have any clue? thank you in advance.
Regards.
[ 44%] Building CXX object modules/viz/CMakeFiles/opencv_viz.dir/src/shapes.cpp.o
In file included from /Users/rafaelruizmunoz/Downloads/opencv/modules/viz/src/clouds.cpp:46:
In file included from /Users/rafaelruizmunoz/Downloads/opencv/modules/viz/src/precomp.hpp:144:
In file included from /Users/rafaelruizmunoz/Downloads/opencv/modules/viz/src/vtk/vtkCloudMatSink.h:48:
In file included from /Users/rafaelruizmunoz/Downloads/opencv/modules/core/include/opencv2/core.hpp:57:
/usr/local/include/opencv2/core/mat.hpp:58:13: error: incomplete type 'cv::Mat'
named in nested name specifier
inline void Mat::initEmpty()
^~~~~
/Users/rafaelruizmunoz/Downloads/opencv/modules/core/include/opencv2/core/base.hpp:679:18: note:
forward declaration of 'cv::Mat'
class CV_EXPORTS Mat;
^
(a lot more of those)
could you say it as answer ? it worked! I had no idea about that :\ Thank you!
and I compiled with libc++ (I changed it in flags)... I don't know what the problem could be
now which one worked ?
cmake -D BUILD_opencv_viz=OFF
so, that was simply 'avoiding the problem' , right ?
if you ever need the viz module, you should try the other idea (recompiling the vtk dependancy with different libc++)
but I think you missunderstood me. I said to say what you said as Answer to mark you as correct on answers.opencv.org :)