Robotics StackExchange | Archived questions

catkin_make_isolated failed for test_tf2 package

I am trying to build catkin_make_isolated, but it fails when it comes to package test_tf2. The error that is produced is:

==> Processing catkin package: 'test_tf2'
==> Building with env: '/home/mars-lab/catkin_ws/devel_isolated/tf2_kdl/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/mars-lab/catkin_ws/build_isolated/test_tf2'
==> make -j8 -l8 in '/home/mars-lab/catkin_ws/build_isolated/test_tf2'
Unhandled exception of type 'RuntimeError':
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/catkin/builder.py", line 981, in build_workspace_isolated
    number=index + 1, of=len(ordered_packages)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/catkin/builder.py", line 682, in build_package
    "'\n  This sometimes occurs when a non-catkin package is "
RuntimeError: No env.sh file generated at: '/home/mars-lab/catkin_ws/devel_isolated/test_tf2/env.sh'
  This sometimes occurs when a non-catkin package is interpreted as a catkin package.
  This can also occur when the cmake cache is stale, try --force-cmake.
<== Failed to process package 'test_tf2': 
  No env.sh file generated at: '/home/mars-lab/catkin_ws/devel_isolated/test_tf2/env.sh'
  This sometimes occurs when a non-catkin package is interpreted as a catkin package.
  This can also occur when the cmake cache is stale, try --force-cmake.
Command failed, exiting.

I tried following http://answers.ros.org/question/231666/, however I get an error.

==> Processing plain cmake package: 'test_tf2'
==> Building with env: '/home/mars-lab/catkin_ws/devel_isolated/tf2_kdl/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/mars-lab/catkin_ws/build_isolated/test_tf2/devel'
==> make -j8 -l8 in '/home/mars-lab/catkin_ws/build_isolated/test_tf2/devel'
==> make install in '/home/mars-lab/catkin_ws/build_isolated/test_tf2/devel'
make: *** No rule to make target 'install'.  Stop.
<== Failed to process package 'test_tf2': 
  Command '['/home/mars-lab/catkin_ws/devel_isolated/tf2_kdl/env.sh', 'make', 'install']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/mars-lab/catkin_ws/build_isolated/test_tf2 && /home/mars-lab/catkin_ws/devel_isolated/tf2_kdl/env.sh make install

I am not sure how to fix this issue, can anyone guide me on how to make it work?

Thanks

Asked by hdbot on 2018-02-25 15:34:29 UTC

Comments

Have you seen #q231666?

Asked by jayess on 2018-02-25 15:43:22 UTC

Yea I did, but I am new at this. I tried implementing it in my package but it produces error. I am not sure why.

Asked by hdbot on 2018-02-25 16:22:59 UTC

Can you please update your question with what you've attempted and the results including any errors using the preformatted text (101010) button?

Asked by jayess on 2018-02-25 16:27:55 UTC

I have updated the question with the error I had received.

Asked by hdbot on 2018-02-25 16:35:04 UTC

I don't know what solved it, but reinstalling the geometry2 package seemed to have done the trick.

Asked by hdbot on 2018-03-02 10:10:05 UTC

Answers