catkin_make_isolated failed for test_tf2 package [closed]

asked 2018-02-25 14:34:29 -0600

hdbot gravatar image

updated 2018-02-25 15:34:43 -0600

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

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by hdbot
close date 2018-03-02 09:10:20.966195

Comments

Have you seen #q231666?

jayess gravatar image jayess  ( 2018-02-25 14:43:22 -0600 )edit

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.

hdbot gravatar image hdbot  ( 2018-02-25 15:22:59 -0600 )edit

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

jayess gravatar image jayess  ( 2018-02-25 15:27:55 -0600 )edit

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

hdbot gravatar image hdbot  ( 2018-02-25 15:35:04 -0600 )edit

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

hdbot gravatar image hdbot  ( 2018-03-02 09:10:05 -0600 )edit