laas / metapod

A template-based robot dynamics library
GNU Lesser General Public License v3.0
14 stars 10 forks source link

CMake does not work (missing cmake files) #55

Closed pbeeson closed 11 years ago

pbeeson commented 11 years ago

Out of box:

pbeeson@tardis:~$ git clone https://github.com/laas/metapod.git Cloning into 'metapod'... remote: Counting objects: 4627, done. remote: Compressing objects: 100% (1463/1463), done. remote: Total 4627 (delta 2713), reused 4550 (delta 2672) Receiving objects: 100% (4627/4627), 10.91 MiB | 564 KiB/s, done. Resolving deltas: 100% (2713/2713), done. pbeeson@tardis:~$ cd metapod/ pbeeson@tardis:~/metapod$ mkdir _build pbeeson@tardis:~/metapod$ cd _build/ pbeeson@tardis:~/metapod/_build$ cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- 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 CMake Error at CMakeLists.txt:24 (INCLUDE): include could not find load file:

cmake/base.cmake

CMake Error at CMakeLists.txt:25 (INCLUDE): include could not find load file:

cmake/cpack.cmake

CMake Error at CMakeLists.txt:26 (INCLUDE): include could not find load file:

cmake/boost.cmake

CMake Error at CMakeLists.txt:27 (INCLUDE): include could not find load file:

cmake/ros.cmake

CMake Error at CMakeLists.txt:82 (SETUP_PROJECT): Unknown CMake command "SETUP_PROJECT".

-- Configuring incomplete, errors occurred!

aelkhour commented 11 years ago

You're missing the cmake submodule, that's why the files cannot be loaded. You should run:

git clone --recursive https://github.com/laas/metapod.git

git will then take care of cloning all the required submodules.

francois-keith commented 11 years ago

git clone --recursive is indeed the best solution to get the repo and its submodules altogether. Still, if the package is already cloned on your computer, you can get its submodules (without recloning the main package) by running

cd metapod
git submodule init
git submodule update
shakhimardanov commented 11 years ago

Hi, my name is Azamat. I am was trying to build the library, but it gives the following exception:

[ 22%] Generating include/metapod/models/simple_arm/config.hh, include/metapod/models/simple_arm/simple_arm.hh, include/metapod/models/simple_arm/simple_arm.cc metapodfromurdf/metapodfromurdf --name simple_arm --libname metapod_simple_arm --directory /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/_build/include/metapod/models/simple_arm --config-file /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/data/simple_arm.config --license-file /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/data/metapod_license_file.txt /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/data/simple_arm.urdf [ INFO] [1363254560.730879662]: Adding joint 'SHOULDER' as a REVOLUTE_AXIS_ANY joint [ INFO] [1363254560.731067210]: Adding joint 'ELBOW' as a REVOLUTE_AXIS_ANY joint [ INFO] [1363254560.731145751]: Adding joint 'WRIST' as a REVOLUTE_AXIS_ANY joint terminate called after throwing an instance of 'boost::exception_detail::clone_implboost::exception_detail::error_info_injector' what(): Attempt to access an uninitialzed boost::match_results<> class. make[2]: *\ [include/metapod/models/simple_arm/config.hh] Aborted

thanks for the feedback

olivier-stasse commented 11 years ago

Could specify your boost version ? The library support only the boost libraries version for Ubuntu 10.04 LTS (boost 1.40) and Ubuntu 12.04 LTS (boost 1.48)

It is quite difficult to follow the boost API, so as a rational we support only LTS distribution.

Best, Olivier 2013/3/14 shakhimardanov notifications@github.com

Hi, my name is Azamat. I am was trying to build the library, but it gives the following exception:

[ 22%] Generating include/metapod/models/simple_arm/config.hh, include/metapod/models/simple_arm/simple_arm.hh, include/metapod/models/simple_arm/simple_arm.cc metapodfromurdf/metapodfromurdf --name simple_arm --libname metapod_simple_arm --directory /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/_build/include/metapod/models/simple_arm --config-file /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/data/simple_arm.config --license-file /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/data/metapod_license_file.txt /home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/data/simple_arm.urdf [ INFO] [1363254560.730879662]: Adding joint 'SHOULDER' as a REVOLUTE_AXIS_ANY joint [ INFO] [1363254560.731067210]: Adding joint 'ELBOW' as a REVOLUTE_AXIS_ANY joint [ INFO] [1363254560.731145751]: Adding joint 'WRIST' as a REVOLUTE_AXIS_ANY joint terminate called after throwing an instance of 'boost::exception_detail::clone_impl boost::exception_detail::error_info_injector' what(): Attempt to access an uninitialzed boost::match_results<> class. make[2]: * [include/metapod/models/simple_arm/config.hh] Aborted make[2]: Leaving directory `/home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/_build' make[1]: * [CMakeFiles/metapod_simple_arm.dir/all] Error 2 make[1]: Leaving directory `/home/azamat/programming/ros-electric/stack-of-tasks/metapod/metapod/_build

thanks for the feedback

— Reply to this email directly or view it on GitHubhttps://github.com/laas/metapod/issues/55#issuecomment-14894354 .

shakhimardanov commented 11 years ago

My host has Debian 6.0.6, with boost 1.42.0.1. I will try to upgrade to 1.48

thanks