Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

kdl_parser build error #54

Closed
spaghetti- opened this issue Jan 29, 2014 · 7 comments
Closed

kdl_parser build error #54

spaghetti- opened this issue Jan 29, 2014 · 7 comments

Comments

@spaghetti-
Copy link

Hello, I'd like some help with this build error I'm getting. Google isnt turning up anything.

==> Processing catkin package: 'kdl_parser'
==> Creating build directory: 'build_isolated/kdl_parser'
==> Building with env: '/Users/alex/Code/ros/ros_catkin_ws/install_isolated/env.sh'
==> cmake /Users/alex/Code/ros/ros_catkin_ws/src/kdl_parser -DCATKIN_DEVEL_PREFIX=/Users/alex/Code/ros/ros_catkin_ws/devel_isolated/kdl_parser -DCMAKE_INSTALL_PREFIX=/Users/alex/Code/ros/ros_catkin_ws/install_isolated in '/Users/alex/Code/ros/ros_catkin_ws/build_isolated/kdl_parser'
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.55.0
-- Using CATKIN_DEVEL_PREFIX: /Users/alex/Code/ros/ros_catkin_ws/devel_isolated/kdl_parser
-- Using CMAKE_PREFIX_PATH: /Users/alex/Code/ros/ros_catkin_ws/install_isolated
-- This workspace overlays: /Users/alex/Code/ros/ros_catkin_ws/install_isolated
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using default Python package layout
-- Found PY_em: /Library/Python/2.7/site-packages/em.pyc
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /Users/alex/Code/ros/ros_catkin_ws/build_isolated/kdl_parser/test_results
-- Found gtest: gtests will be built
-- catkin 0.5.80
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
Looking for KDL in: /Users/alex/Code/ros/ros_catkin_ws/install_isolated
-- checking for one of the modules 'orocos_kdl'
   Includes in: /Users/alex/Code/ros/ros_catkin_ws/install_isolated/include;/usr/local/include/eigen3
Compiler flags: -I/Users/alex/Code/ros/ros_catkin_ws/install_isolated/include;-I/usr/local/include/eigen3
   Libraries: orocos-kdl
   Libraries in: /Users/alex/Code/ros/ros_catkin_ws/install_isolated/lib
   Linker flags :
   Defines:
-- Found TinyXML: /usr/local/lib/libtinyxml.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/alex/Code/ros/ros_catkin_ws/build_isolated/kdl_parser
==> make -j4 -l4 in '/Users/alex/Code/ros/ros_catkin_ws/build_isolated/kdl_parser'
Scanning dependencies of target kdl_parser
[ 50%] Building CXX object CMakeFiles/kdl_parser.dir/src/kdl_parser.cpp.o
Linking CXX shared library /Users/alex/Code/ros/ros_catkin_ws/devel_isolated/kdl_parser/lib/libkdl_parser.dylib
[ 50%] Built target kdl_parser
Scanning dependencies of target check_kdl_parser
[100%] Building CXX object CMakeFiles/check_kdl_parser.dir/src/check_kdl_parser.cpp.o
/Users/alex/Code/ros/ros_catkin_ws/src/kdl_parser/src/check_kdl_parser.cpp:49:49: error: no member named 'segment' in
      'boost::shared_ptr<KDL::TreeElement>'; did you mean to use '->' instead of '.'?
  cout << prefix << "- Segment " << link->second.segment.getName() << " has " << link->second.children.size() << " child...
                                                ^
                                                ->
/Users/alex/Code/ros/ros_catkin_ws/src/kdl_parser/src/check_kdl_parser.cpp:49:94: error: no member named 'children' in
      'boost::shared_ptr<KDL::TreeElement>'; did you mean to use '->' instead of '.'?
  cout << prefix << "- Segment " << link->second.segment.getName() << " has " << link->second.children.size() << " child...
                                                                                             ^
                                                                                             ->
/Users/alex/Code/ros/ros_catkin_ws/src/kdl_parser/src/check_kdl_parser.cpp:50:40: error: no member named 'children' in
      'boost::shared_ptr<KDL::TreeElement>'; did you mean to use '->' instead of '.'?
  for (unsigned int i=0; i<link->second.children.size(); i++)
                                       ^
                                       ->
/Users/alex/Code/ros/ros_catkin_ws/src/kdl_parser/src/check_kdl_parser.cpp:51:27: error: no member named 'children' in
      'boost::shared_ptr<KDL::TreeElement>'; did you mean to use '->' instead of '.'?
    printLink(link->second.children[i], prefix + "  ");
                          ^
                          ->
4 errors generated.
make[2]: *** [CMakeFiles/check_kdl_parser.dir/src/check_kdl_parser.cpp.o] Error 1
make[1]: *** [CMakeFiles/check_kdl_parser.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'kdl_parser':
  Command '/Users/alex/Code/ros/ros_catkin_ws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2

Reproduce this error by running:
==> cd /Users/alex/Code/ros/ros_catkin_ws/build_isolated/kdl_parser && /Users/alex/Code/ros/ros_catkin_ws/install_isolated/env.sh make -j4 -l4

Command failed, exiting.
@wjwwood
Copy link
Member

wjwwood commented Jan 29, 2014

What version of kdl_parser are you using, what version of boost, and what operating system are you using?

@wjwwood
Copy link
Member

wjwwood commented Jan 29, 2014

Looks like OS X.

@wjwwood
Copy link
Member

wjwwood commented Jan 29, 2014

Also, what is the version of orocos-kdl?

@spaghetti-
Copy link
Author

@wjwwood sorry for the late reply, but I got it to compile by changing the link->second.children[] to link->second->children[] (everywhere needed).

afaik theres an open pull request that fixes these errors that we're supposed to pull in to fix it before building but I just did it manually.
Here: ros/robot_state_publisher#5

@spaghetti-
Copy link
Author

For the root of the issue see: orocos/orocos_kinematics_dynamics#4

@jacquelinekay
Copy link
Contributor

The robot_state_publisher PR that you referenced in your last comment has been merged. Can I close this issue?

@jacquelinekay
Copy link
Contributor

Closing this unless @spaghetti- or others report that this issue persists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants