robotology-legacy / codyco-superbuild

Software repository for FP7 project CoDyCo - Whole-body Compliant Dynamical Contacts in Cognitive Humanoids - http://www.codyco.eu
13 stars 17 forks source link

Compilation error #27

Closed traversaro closed 10 years ago

traversaro commented 10 years ago

I was trying to compile the codyco super-build and I receive the following compilation error:

In file included from /usr/local/src/robot/codyco-superbuild/libraries/kdl_format_io/src/converters/iKin_export.cpp:38:0:
/usr/local/src/robot/codyco-superbuild/libraries/kdl_format_io/include/kdl_format_io/iKin_export.hpp:46:31: fatal error: iCub/iKin/iKinFwd.h: No such file or directory
compilation terminated.
make[5]: *** [CMakeFiles/kdl-format-io.dir/src/converters/iKin_export.cpp.o] Error 1
make[4]: *** [CMakeFiles/kdl-format-io.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [libraries/kdl_format_io/CMakeFiles/YCMStamp/kdl_format_io-build] Error 2
make[1]: *** [CMakeFiles/kdl_format_io.dir/all] Error 2
make: *** [all] Error 2
traversaro commented 10 years ago

@DanielePucci @rbonghi It is a bug in kdl_format_io CMakeLists.txt when icub-main is not installed and instead is used from the build directory. I am still working on the solution, in the meanwhile a workaround is to go in the BUILD_DIRECTORY/libraries/kdl_format_io directory, type ccmake . and manually disable the ENABLE_IKIN option.

traversaro commented 10 years ago

I have a new error: make[3]: * No targets specified and no makefile found. Stop. make[2]: * [libraries/kdl_format_io/CMakeFiles/YCMStamp/kdl_format_io-build] Error 2 make[1]: * [CMakeFiles/kdl_format_io.dir/all] Error 2 make: * [all] Error 2

traversaro commented 10 years ago

@DanielePucci @rbonghi Given the problem that this option is causing, I disabled it in https://github.com/robotology/codyco-superbuild/commit/5dc3b9c1b1df2d9a207b0538e38cc5800943fa8e , please update the codyco-superbuild (with git pull), delete the kdl_format_io build directory and retry.

traversaro commented 10 years ago

FYI: the same issue cause a failure in Travis: https://travis-ci.org/robotology/codyco-superbuild/jobs/38150656