start-jsk / openhrp3

This package does not only wrap OpenHRP3 but actually provides the built artifact from the code from its mainstream repository. Being ROS-agnostic by itself, you can also use this via ROS together with the packages in rtmros_common that bridge between two framework.
1 stars 5 forks source link

failed to compile on rosbuild/groovy because cannot find openrtm #9

Closed garaemon closed 10 years ago

garaemon commented 10 years ago

I have an error when compile openhrp3 on rosbuild.

~/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3(branch:master*) » make                                                                                                                              ueda@mensa
mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=/opt/ros/groovy/share/ros/core/rosbuild/rostoolchain.cmake -DUSE_ROSBUILD:BOOL=1 ..
[rosbuild] Building package openhrp3
[rosbuild] Cached build flags older than manifests; calling rospack to get flags
-- Using CATKIN_DEVEL_PREFIX: /home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3/build/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/groovy
-- This workspace overlays: /opt/ros/groovy
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Skip enable_testing() for dry packages
-- Using CATKIN_TEST_RESULTS_DIR: /home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.77
[rosbuild] Including /home/jsk/ueda/ros/groovy/jsk-ros-pkg/roseus/cmake/roseus.cmake
set ARCHDIR to Linux64
use the location of executables to set EUSDIR
set EUSDIR to /home/jsk/ueda/ros/groovy/jsk-ros-pkg/euslisp/jskeus/eus
configuring by "/home/jsk/ueda/ros/groovy/jsk-ros-pkg/euslisp/jskeus/eus/lib/eusrt.l"
;; readmacro ;; object ;; packsym ;; common ;; constants ;; stream ;; string ;; loader ;; pprint ;; process ;; hashtab ;; array ;; mathtran ;; eusdebug ;; eusforeign ;; coordinates ;; tty ;; history ;; toplevel ;;
 trans ;; comp ;; builtins ;; l/par.l ;; intersection-undefined ;; geo/geoclasses.l ;; geo/geopack.l ;; geo/geobody.l ;; geo/primt.l ;; geo/compose.l ;; geo/polygon.l ;; geo/viewing.l ;; geo/viewport.l ;; geo/view
surface.l ;; geo/hid.l ;; geo/shadow.l ;; geo/bodyrel.l ;; geo/dda.l ;; helpsub ;; eushelp ;; fstringdouble 
EusLisp 8.26(r670M) for Linux64 created on mensa(Mon Feb 17 18:40:24 JST 2014)
[roseus.cmake] add custom target ROSBUILD_genmanifest_roseus_openhrp3
[roseus.cmake] add custom target ROSBUILD_genmsg_roseus_openhrp3
[roseus.cmake] add custom target ROSBUILD_gensrv_roseus_openhrp3
set ARCHDIR to Linux64
use the location of executables to set EUSDIR
set EUSDIR to /home/jsk/ueda/ros/groovy/jsk-ros-pkg/euslisp/jskeus/eus
configuring by "/home/jsk/ueda/ros/groovy/jsk-ros-pkg/euslisp/jskeus/eus/lib/eusrt.l"
;; readmacro ;; object ;; packsym ;; common ;; constants ;; stream ;; string ;; loader ;; pprint ;; process ;; hashtab ;; array ;; mathtran ;; eusdebug ;; eusforeign ;; coordinates ;; tty ;; history ;; toplevel ;;
 trans ;; comp ;; builtins ;; l/par.l ;; intersection-undefined ;; geo/geoclasses.l ;; geo/geopack.l ;; geo/geobody.l ;; geo/primt.l ;; geo/compose.l ;; geo/polygon.l ;; geo/viewing.l ;; geo/viewport.l ;; geo/view
surface.l ;; geo/hid.l ;; geo/shadow.l ;; geo/bodyrel.l ;; geo/dda.l ;; helpsub ;; eushelp ;; fstringdouble 
EusLisp 8.26(r670M) for Linux64 created on mensa(Mon Feb 17 18:40:24 JST 2014)
[roseus.cmake] [1/2] Check openrtm_aist_python for openhrp3
[roseus.cmake] [2/2] Check openhrp3 for openhrp3
[rosbuild] Including /opt/ros/groovy/share/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/groovy/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including /opt/ros/groovy/share/rospy/rosbuild/rospy.cmake
make[1]: Entering directory `/home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3'
compile openhrp3 ... 
                 PATH=/opt/ros/groovy/bin:/home/jsk/ueda/gprog/elastic-mapreduce-ruby:/usr/local/mahout/bin:/usr/local/bin:/Library/Haskell/bin:/usr/local/heroku/bin:/opt/android-sdk/tools:/opt/android-sdk/tools:/
home/jsk/ueda/gprog/elastic-mapreduce-ruby:/usr/local/mahout/bin:/usr/local/bin:/Library/Haskell/bin:/usr/local/heroku/bin:/home/jsk/ueda/.rvm/gems/ruby-2.1.0/bin:/home/jsk/ueda/.rvm/gems/ruby-2.1.0@global/bin:/ho
me/jsk/ueda/.rvm/rubies/ruby-2.1.0/bin:/home/jsk/ueda/.nvm/v0.10.21/bin:/opt/android-sdk/tools:/opt/android-sdk/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/jsk/ueda/gprog/sc
an-scripts/bin:/home/jsk/ueda/gprog/platex-create-pkg:/home/jsk/ueda/gprog/emacs-settings:/home/jsk/ueda/.rvm/bin:/home/jsk/ueda/gprog/git-your-emacs:/home/jsk/ueda/gprog/heroku-nodekit:/usr/local/Cellar/pypy/1.9/
bin/:/home/jsk/ueda/gprog/minify-make:/Applications/SenchaSDKTools-2.0.0-beta3:/home/jsk/ueda/gprog/jq:/usr/local/share/python:/home/jsk/ueda/gprog/snapshotter/bin:/home/jsk/ueda/gprog/s3sync/:/home/jsk/ueda/ros_c
atkin_ws/hydro/install/share/roseus/bin:/bin:/home/jsk/ueda/gprog/scan-scripts/bin:/home/jsk/ueda/gprog/platex-create-pkg:/home/jsk/ueda/gprog/emacs-settings:/home/jsk/ueda/gprog/git-your-emacs:/home/jsk/ueda/gpro
g/heroku-nodekit:/usr/local/Cellar/pypy/1.9/bin/:/home/jsk/ueda/gprog/minify-make:/Applications/SenchaSDKTools-2.0.0-beta3:/home/jsk/ueda/gprog/jq:/usr/local/share/python:/home/jsk/ueda/gprog/snapshotter/bin:/home
/jsk/ueda/gprog/s3sync/:/home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openrtm_aist_core/openrtm_aist/bin:/opt/ros/groovy/lib/openrtm_aist/bin
                 INSTALL_DIR=/home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3
                 OPENRTM_DIR=
cd build/OpenHRP-3.1 && cmake . -DCMAKE_INSTALL_PREFIX=/home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3 -DENABLE_INSTALL_RPATH=ON -DENABLE_INSTALL_RPATH_TO_SELF=ON -DCOMPILE_JAVA_STUFF=OFF && mak
e VERBOSE=1 -j`grep -c processor /proc/cpuinfo` && make install
-- use C interface for Lapack
-- use c interaface for Blas
-- Found /usr/lib/atlas-base/atlas/libblas.so;/usr/lib/atlas-base/atlas/liblapack.so in /usr/lib/atlas-base/atlas
-- Looking for Eigen - found
CMake Error at cmake_modules/FindOpenRTM.cmake:20 (message):
  rtm-config was not found in NOT_FOUND/bin.  Please set OPENRTM_DIR
  correctly.
Call Stack (most recent call first):
  CMakeLists.txt:255 (find_package)

-- Configuring incomplete, errors occurred!
make[1]: Leaving directory `/home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3'
make[1]: *** [installed] Error 1
CMake Error at CMakeLists.txt:24 (message):
  Build of OpenHRP3 failed

-- Configuring incomplete, errors occurred!
make: *** [all] Error 1

~/ros/groovy/rtm-ros-robotics/openrtm_common/openhrp3(branch:master*) » rospack find openrtm_aist                                                                                                         ueda@mensa
/home/jsk/ueda/ros/groovy/rtm-ros-robotics/openrtm_common/openrtm_aist_core/openrtm_aist
k-okada commented 10 years ago

http://jenkins.jsk.imi.i.u-tokyo.ac.jp:8080/job/rtm-ros-robotics/78/ をみると動いているようです.自分の環境と何処が違うか調べてみて下さい.

garaemon commented 10 years ago

hydroと混ざった環境でcompileしてしまい、それがbuildにキャッシュに残っていていたのに気づいていなかったようです。

お騒がせしました