ros / homebrew-hydro

Hydro packages and dependencies repository for Homebrew
2 stars 7 forks source link

error: field has incomplete type 'KDL::TreeElement' #16

Closed JetForMe closed 10 years ago

JetForMe commented 10 years ago

Building with the instructions here: http://wiki.ros.org/hydro/Installation/OSX/Homebrew/Source, I ran into this during catkin_make_isolated:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/utility:221:9: error: field has incomplete type 'KDL::TreeElement'
    _T2 second;
        ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__tree:602:16: note: in instantiation of template class 'std::__1::pair<std::__1::basic_string<char>, KDL::TreeElement>' requested here
    value_type __value_;
               ^
.
.
.

I tried the solution here: http://answers.ros.org/question/94771/building-ros-on-osx-109-solution/?answer=101176#post-id-101176, which had some git update steps, but those fail with

EclipseSSD:catkin_ws rmann$ cd src/orocos_kdl
EclipseSSD:orocos_kdl rmann$ git remote add upstream git@github.com:orocos/orocos_kinematics_dynamics.git
fatal: Not a git repository (or any of the parent directories): .git
wjwwood commented 10 years ago

Your checkout of the source code was done by extracting tarballs rather than by checking out git repos, so his instructions won't work. Instead do this:

cd src
curl https://github.com/orocos/orocos_kinematics_dynamics/pull/4.diff | patch -p1

You might get a patch failure on a CMakeLists.txt, but you can ignore that.

wjwwood commented 10 years ago

Please close this is that works for you.

JetForMe commented 10 years ago

Thank you, that worked. What did I do differently that got me tar-based directories, rather than git-based?

wjwwood commented 10 years ago

The --tar option to rosinstall_generator, I made that the default because it is much more efficient to download the tar balls rather than checking out all of those git repositories.