catkin build stuck on rospack failure
POST EDIT
I'm installing on El Capitan (os x 10.11.1) and it appears that a lot of people are having issues with this version of os x without a solution. In my scouring the web I've found a handful other people running into the same issues.
ORIGINAL
$ catkin build -DCMAKE_BUILD_TYPE=Release
fails with:
...
[python_orocos_kdl] ==> '/Users/Jackson/ros_catkin_ws/build/python_orocos_kdl/build_env.sh /usr/bin/make --jobserver-fds=3,4 -j' in '/Users/Jackson/ros_catkin_ws/build/python_orocos_kdl'
[ 10%] Building CXX object CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart0.o
In file included from /Users/Jackson/ros_catkin_ws/build/python_orocos_kdl/PyKDL/sipPyKDLpart0.cpp:7:
In file included from /Users/Jackson/ros_catkin_ws/build/python_orocos_kdl/PyKDL/sipAPIPyKDL.h:11:
/usr/local/include/sip.h:32:10: fatal error: 'Python.h' file not found
#include <Python.h>
^
[ 20%] Building CXX object CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart1.o
In file included from /Users/Jackson/ros_catkin_ws/build/python_orocos_kdl/PyKDL/sipPyKDLpart1.cpp:7:
In file included from /Users/Jackson/ros_catkin_ws/build/python_orocos_kdl/PyKDL/sipAPIPyKDL.h:11:
/usr/local/include/sip.h:32:10: fatal error: 'Python.h' file not found
#include <Python.h>
^
1 error generated.
make[2]: *** [CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart0.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart1.o] Error 1
make[1]: *** [CMakeFiles/python_module_PyKDL.dir/all] Error 2
make: *** [all] Error 2
[python_orocos_kdl] <== '/Users/Jackson/ros_catkin_ws/build/python_orocos_kdl/build_env.sh /usr/bin/make --jobserver-fds=3,4 -j' failed with return code '2'
Finished <== visualization_tutorials [ 1.3 seconds ]
Starting ==> rospack
Finished <== viz [ 1.3 seconds ]
Starting ==> rostime
Finished <== gencpp [ 1.3 seconds ]
Starting ==> xmlrpcpp
Finished <== geneus [ 1.3 seconds ]
Starting ==> pr2_description
Failed <== python_orocos_kdl [ 1.6 seconds ]
Finished <== genlisp [ 1.2 seconds ]
Finished <== genpy [ 1.3 seconds ]
Finished <== class_loader [ 1.4 seconds ]
[rospack] ==> '/Users/Jackson/ros_catkin_ws/build/rospack/build_env.sh /usr/bin/make --jobserver-fds=3,4 -j' in '/Users/Jackson/ros_catkin_ws/build/rospack'
make[2]: *** No rule to make target `/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib', needed by `/Users/Jackson/ros_catkin_ws/devel/lib/librospack.dylib'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 11%] Building CXX object CMakeFiles/rospack.dir/src/rospack.cpp.o
/Users/Jackson/ros_catkin_ws/src/rospack/src/rospack.cpp:72:10: fatal error: 'Python.h' file not found
#include <Python.h>
^
1 error generated.
make[2]: *** [CMakeFiles/rospack.dir/src/rospack.cpp.o] Error 1
make[1]: *** [CMakeFiles/rospack.dir/all] Error 2
make: *** [all] Error 2
[rospack] <== '/Users/Jackson/ros_catkin_ws/build/rospack/build_env.sh /usr/bin/make --jobserver-fds=3,4 -j' failed with return code '2'
Finished <== rostime [ 1.3 seconds ]
Finished <== xmlrpcpp [ 1.2 seconds ]
Finished <== pr2_description [ 2.7 seconds ]
Failed <== rospack [ 3.3 seconds ]
[build] Runtime: 23.2 seconds
Traceback (most recent call last):
File "/usr/local/bin/catkin", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/catkin_tools/commands/catkin.py", line 219, in main
sys.exit(args.main(args) or 0)
File "/usr ...
Are you sure Python.h file exists?
find / -name "Python.h"
finds the file in a number of different spots. Is there a specific one I need to check for?Have you tried using
catkin_make_isolated
instead?catkin build
is still in beta.