Ask Your Question
0

ROS Kinetic can't compile opencv3 on Mojave

asked 2019-07-28 15:23:50 -0500

mathosborne gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-04 07:20:14 -0500

mathosborne gravatar image

I probabaly neede to read the Disclaimer at the top of the Install instructions:

http://wiki.ros.org/kinetic/Installat...

"This is a work in progress! It really won't work right now..."

Trying to build a dual boot now also with problems :-(

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-07-28 15:23:50 -0500

Seen: 70 times

Last updated: Aug 04