ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Problems Building from Source [closed]

asked 2015-07-02 19:07:32 -0600

allenh1 gravatar image

updated 2015-07-02 22:22:46 -0600

Hello everyone! I'm trying to build Jade from source, and I have run into a problem, likely python related. It builds several packages successfully, then fails at python_orocos_kdl:

<== Finished processing package [37 of 223]: 'pr2_description'

==> Processing plain cmake package: 'python_orocos_kdl'
==> Building with env: '/opt/ros/jade/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/allenh1/catkin_ws/build_isolated/python_orocos_kdl/install'
==> make -j8 -l8 in '/home/allenh1/catkin_ws/build_isolated/python_orocos_kdl/install'
[ 11%] Building CXX object CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart7.o
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip: In function ‘int convertTo_std_string(PyObject*, void**, int*, PyObject*)’:
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:41:37: error: ‘PyString_Check’ was not declared in this scope
         return (PyString_Check(sipPy) || PyUnicode_Check(sipPy));
                                     ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:48:58: error: ‘PyString_AS_STRING’ was not declared in this scope
         *sipCppPtr = new std::string(PyString_AS_STRING(s));
                                                          ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:52:30: error: ‘PyString_Check’ was not declared in this scope
      if (PyString_Check(sipPy)) {
                              ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:53:62: error: ‘PyString_AS_STRING’ was not declared in this scope
         *sipCppPtr = new std::string(PyString_AS_STRING(sipPy));
                                                              ^
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip: In function ‘PyObject* convertFrom_std_string(void*, PyObject*)’:
/home/allenh1/catkin_ws/src/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL/std_string.sip:30:56: error: ‘PyString_FromString’ was not declared in this scope
         newstring = PyString_FromString(sipCpp->c_str());
                                                        ^
CMakeFiles/python_module_PyKDL.dir/build.make:243: recipe for target 'CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart7.o' failed
make[2]: *** [CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart7.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/python_module_PyKDL.dir/all' failed
make[1]: *** [CMakeFiles/python_module_PyKDL.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'python_orocos_kdl': 
  Command '['/opt/ros/jade/env.sh', 'make', '-j8', '-l8']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/allenh1/catkin_ws/build_isolated/python_orocos_kdl && /opt/ros/jade/env.sh make -j8 -l8

Command failed, exiting.

I am building with the following command.

$ sudo PYTHONPATH="/opt/ros/jade/lib64/python3.3/site-packages/" ./src/catkin/bin/catkin_make_isolated --install --install-space /opt/ros/jade -DSETUPTOOLS_DEB_LAYOUT=OFF

No packages can build, for some reason, unless I explicitly add the PYTHONPATH variable as seen above. Any suggestions as to how I can get this working?

Thanks in advance.


Update: I have roscore up and running!

image description

I was even able to build something I wrote in Qt for controlling a robot.

image description

But I cannot do anything else until I get the rest to build... I'm creating a Gentoo install guide for Jade.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by allenh1
close date 2015-07-09 12:03:31.844389

1 Answer

Sort by » oldest newest most voted
1

answered 2015-07-09 11:39:09 -0600

allenh1 gravatar image

I have an answer! The issue falls from the adaptation of Python3. Running the following worked to fix this.

$ cd ~/ros_catkin_ws/orocos_kinematics_dynamics/python_orocos_kdl/PyKDL
$ rm -f ./std_string.sip
$ wget https://raw.githubusercontent.com/orocos/orocos_kinematics_dynamics/master/python_orocos_kdl/PyKDL/std_string.sip

This allows several more things to build. Now up to 117/223 building for desktop_full on Gentoo..

edit flag offensive delete link more

Comments

I was so excited that I found this answer! But unfortunately it doesn't help in my situation as the orocos_kinematics_dynamics folder does not exist :( osx 10.11.1

jacksonkr_ gravatar image jacksonkr_  ( 2015-12-10 21:32:02 -0600 )edit

Hey! Sorry - been a little busy lately. What is your specific issue on OS X?

allenh1 gravatar image allenh1  ( 2016-01-12 08:58:57 -0600 )edit

That was long enough ago that the details are fuzzy. My biggest issue is that I'm running El Capitan (OS X 10.11). I have ubuntu on a separate machine so that may be my best bet. I'm excited for you that you have this working though!

jacksonkr_ gravatar image jacksonkr_  ( 2016-01-12 12:02:19 -0600 )edit

This issue got resolved by installing sip for python 2.7: https://fredrikaverpil.github.io/2015...

0xbot gravatar image 0xbot  ( 2019-11-02 14:12:29 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-07-02 19:07:32 -0600

Seen: 2,319 times

Last updated: Jul 09 '15