ROS Kinetic can't compile opencv3 on Mojave
Hi I'm stuck on installing ROS Kinetic when it gets to the opencv3 install it comes up with the following errors. Managed to get this far by brew installing, uninstalling, linking and skipping previous errors as in troubleshooting but not sure what to do next with this one.
[ 85%] Built target opencv_structured_light
[ 86%] Built target opencv_bgsegm
[ 86%] Built target opencv_aruco
[ 87%] Built target opencv_rgbd
[ 87%] Built target opencv_createsamples
[ 89%] Built target opencv_videostab
[ 89%] Built target opencv_traincascade
[ 92%] Built target opencv_tracking
[ 94%] Built target opencv_xfeatures2d
[ 97%] Built target opencv_ximgproc
[ 97%] Built target opencv_interactive-calibration
[ 98%] Built target opencv_face
[ 99%] Built target opencv_stitching
[100%] Built target opencv_optflow
[100%] Built target opencv_python2
/Users/mho1/ros_catkin_ws/src/opencv3/opencv_contrib/stereo/src/descriptor.cpp:229:34: error:
ordered comparison between pointer and zero ('const int *' and 'int')
CV_Assert(image.size > 0);
~~~~~~~~~~ ^ ~
/Users/mho1/ros_catkin_ws/src/opencv3/modules/core/include/opencv2/core/base.hpp:469:93: note:
expanded from macro 'CV_Assert'
...CVAUX_CONCAT(CV_Assert_, CV_VA_NUM_ARGS(__VA_ARGS__)) (__VA_ARGS__)
^~~~~~~~~~~
/Users/mho1/ros_catkin_ws/src/opencv3/modules/core/include/opencv2/core/base.hpp:458:35: note:
expanded from macro 'CV_Assert_1'
#define CV_Assert_1( expr ) if(!!(expr)) ; else cv::error( cv::Error::St...
^~~~
/Users/mho1/ros_catkin_ws/src/opencv3/opencv_contrib/stereo/src/descriptor.cpp:230:33: error:
ordered comparison between pointer and zero ('const int *' and 'int')
CV_Assert(cost.size > 0);
~~~~~~~~~ ^ ~
/Users/mho1/ros_catkin_ws/src/opencv3/modules/core/include/opencv2/core/base.hpp:469:93: note:
expanded from macro 'CV_Assert'
...CVAUX_CONCAT(CV_Assert_, CV_VA_NUM_ARGS(__VA_ARGS__)) (__VA_ARGS__)
^~~~~~~~~~~
/Users/mho1/ros_catkin_ws/src/opencv3/modules/core/include/opencv2/core/base.hpp:458:35: note:
expanded from macro 'CV_Assert_1'
#define CV_Assert_1( expr ) if(!!(expr)) ; else cv::error( cv::Error::St...
^~~~
2 errors generated.
make[2]: *** [modules/stereo/CMakeFiles/opencv_stereo.dir/src/descriptor.cpp.o] Error 1
make[1]: *** [modules/stereo/CMakeFiles/opencv_stereo.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'opencv3':
Command '['/Users/mho1/ros_catkin_ws/install_isolated/env.sh', 'make', '-j12', '-l12']' returned non-zero exit status 2
Thanks for any help,
Matt
Any update on this issue? It's been sitting at "This is a work in progress! It really won't work right now..." for a year now