Unable to build OpenCV due to missing ninja

asked 2016-09-22 14:26:37 -0600

Cerin gravatar image

I'm trying to build OpenCV3, as part of a dependency for the diagnostics ROS Kinetic. My build steps are:

rosinstall_generator diagnostics --rosdistro kinetic --deps | wstool merge -t src -
wstool update -t src -j2 --delete-changed-uris
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y -r --os=debian:jessie
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic -j1

The last command builds several packages, but fails on OpenCV3 with the error:

==> Processing plain cmake package: 'opencv3'
==> Building with env: '/opt/ros/kinetic/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/pi/ros_catkin_ws/build_isolated/opencv3/install'
==> ninja -j1 in '/home/pi/ros_catkin_ws/build_isolated/opencv3/install'
ninja: error: loading 'build.ninja': No such file or directory
<== Failed to process package 'opencv3': 
  Command '['/opt/ros/kinetic/env.sh', 'ninja', '-j1']' returned non-zero exit status 1

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/opencv3 && /opt/ros/kinetic/env.sh ninja -j1

What's causing this error? Why doesn't OpenCV3 include a Ninja build file? I've asked about this on the corresponding ROS answers site, but they have no idea what's causing this.

edit retag flag offensive close merge delete

Comments

noone here knows, why the the maintainer of your diagnostics package choosed ninja as buildtool, but what about just complying ?

berak gravatar imageberak ( 2016-09-24 04:39:42 -0600 )edit