start-jsk / rtmros_common

OpenRTM - ROS interoperability packages
http://wiki.ros.org/rtmros_common
12 stars 52 forks source link

rtm-config was not found in %OPENRTM_DIR%/bin #154

Closed k-okada closed 10 years ago

k-okada commented 10 years ago

From gm130s on August 02, 2013 23:43:35

r4912 です.

{{{ $ catkin_make -- +++ processing catkin package: 'hrpsys' -- ==> add_subdirectory(openrtm_common/hrpsys) mkdir -p build/hrpsys-base && cd build/hrpsys-base && PKG_CONFIG_PATH=rospack find openrtm_aist/lib/pkgconfig:rospack find openhrp3/lib/pkgconfig:/home/n130s/data/Dropbox/ROS/hydro_precise/catkinws_rtm/devel/lib/pkgconfig cmake -DCMAKE_INSTALL_PREFIX=/home/n130s/data/Dropbox/ROS/hydro_precise/catkinws_rtm/src/openrtm_common/hrpsys -DOPENRTM_DIR=/home/n130s/data/Dropbox/ROS/hydro_precise/catkinws_rtm/src/openrtm_aist -DENABLE_INSTALL_RPATH=ON -DCOMPILE_JAVA_STUFF=OFF -DEXTRA_RTC_DIRS= -DEXTRA_IDL_FILES= -DENABLE_INSTALL_RPATH_TO_SELF=ON /home/n130s/data/Dropbox/ROS/hydro_precise/catkinws_rtm/src/openrtm_common/hrpsys/build/hrpsys-base-source && make CMake Error at cmake_modules/FindOpenRTM.cmake:13 (message): rtm-config was not found in /home/n130s/data/Dropbox/ROS/hydro_precise/catkinws_rtm/src/openrtm_aist/bin. Please set OPENRTM_DIR correctly. Call Stack (most recent call first): CMakeLists.txt:35 (find_package)

-- Configuring incomplete, errors occurred! make: *\ [installed] Error 1 CMake Error at openrtm_common/hrpsys/catkin.cmake:13 (message): Build of hrpsys-base failed Call Stack (most recent call first): openrtm_common/hrpsys/CMakeLists.txt:2 (include)

-- Configuring incomplete, errors occurred! Invoking "cmake" failed }}}

hrpsys を待避して catkin_make したところエラー無く終了します.しかし rtm-config というファイルは生成されてないようです.

Original issue: http://code.google.com/p/rtm-ros-robotics/issues/detail?id=154

k-okada commented 10 years ago

From gm130s on August 04, 2013 16:55:33

原因と workaround は判りました. r4944 をレヴュお願いします.

下のように,metapackage である openrtm_comm 内で階層があると失敗します.

├── src │   ├── CMakeLists.txt -> /opt/ros/hydro/share/catkin/cmake/toplevel.cmake │   └── openrtm_common │   ├── hrpsys │   ├── openhrp3 │   ├── openrtm_aist │   ├── openrtm_aist_python │   ├── openrtm_common │   ├── rtctree │   ├── rtshell │   └── rtsprofile

hrpsys/catkin.cmake で OPENRTM_DIR を set しますが,上記の階層の場合,

x /home/n130s/ROS/hydro_precise/catkinws_rtm/src/openrtm_aist o /home/n130s/ROS/hydro_precise/catkinws_rtm/src/openrtm_comm/openrtm_aist

です.

workaround を https://code.google.com/p/rtm-ros-robotics/source/detail?r=4944 で commit しました.

Status: Fixed
Labels: -Type-Defect Type-Review

k-okada commented 10 years ago

From kei.ok...@gmail.com on August 04, 2013 19:45:51

岡田です. r4946 でコミットしました. find_package(catkin REQUIRED COMPONENTS Openrtm_aist) としておくと, openrtm_aist_SOURCE_DIR で参照できるようです.

catkin上でrospackしているところは,これで直せそうです.

k-okada commented 10 years ago

From gm130s on August 04, 2013 22:12:38

r4946 でも catkin で,新規にダウンロードした状態からビルドできることを確認しました. かなり最適っぽいソリューションですね.