atenpas / gpd_ros

ROS wrapper around GPD
BSD 2-Clause "Simplified" License
56 stars 69 forks source link

Cannot build gpd_ros #15

Closed shmpwk closed 4 years ago

shmpwk commented 4 years ago

Hi, I followed your README but have a trouble when building. My environment is Ubuntu 18.04, melodic.

I installed GPD and confirmed that it works. After cloning this repository and moving to my work space, I tried catkiin build gpd_ros. But error occurred saying " CMake Error at /home/shumpeiwakabayashi/ow_ws/src/gpd2_ros/CMakeLists.txt:20 (message): Library GPD not found "

--------------------------------------------------------------------------------
Profile:                     default
Extending:          [cached] /home/shumpeiwakabayashi/catkin_ws/devel:/opt/ros/melodic
Workspace:                   /home/shumpeiwakabayashi/ow_ws
--------------------------------------------------------------------------------
Build Space:        [exists] /home/shumpeiwakabayashi/ow_ws/build
Devel Space:        [exists] /home/shumpeiwakabayashi/ow_ws/devel
Install Space:      [unused] /home/shumpeiwakabayashi/ow_ws/install
Log Space:          [exists] /home/shumpeiwakabayashi/ow_ws/logs
Source Space:       [exists] /home/shumpeiwakabayashi/ow_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
--------------------------------------------------------------------------------
Workspace configuration appears valid.
--------------------------------------------------------------------------------
[build] Found '86' packages in 0.0 seconds.                                    
[build] Package table is up to date.                                           
Starting  >>> gpd_ros                                                          
_______________________________________________________________________________
Errors     << gpd_ros:cmake /home/shumpeiwakabayashi/ow_ws/logs/gpd_ros/build.cmake.001.log
** WARNING ** io features related to ensenso will be disabled
** WARNING ** io features related to davidSDK will be disabled
** WARNING ** io features related to dssdk will be disabled
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
** WARNING ** io features related to libusb-1.0 will be disabled
** WARNING ** visualization features related to ensenso will be disabled
** WARNING ** visualization features related to davidSDK will be disabled
** WARNING ** visualization features related to dssdk will be disabled
** WARNING ** visualization features related to rssdk will be disabled
CMake Error at /home/shumpeiwakabayashi/ow_ws/src/gpd2_ros/CMakeLists.txt:20 (message):
  Library GPD not found

cd /home/shumpeiwakabayashi/ow_ws/build/gpd_ros; catkin build --get-env gpd_ros | catkin env -si  /usr/bin/cmake /home/shumpeiwakabayashi/ow_ws/src/gpd2_ros --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/shumpeiwakabayashi/ow_ws/devel/.private/gpd_ros -DCMAKE_INSTALL_PREFIX=/home/shumpeiwakabayashi/ow_ws/install; cd -
...............................................................................
Failed     << gpd_ros:cmake          [ Exited with code 1 ]                    
Failed    <<< gpd_ros                [ 2.2 seconds ]                           
[build] Summary: 0 of 1 packages succeeded.                                    
[build]   Ignored:   85 packages were skipped or are blacklisted.              
[build]   Warnings:  None.                                                     
[build]   Abandoned: None.                                                     
[build]   Failed:    1 packages failed.                                        
[build] Runtime: 2.7 seconds total.      

Seeing CMakeList.txt:16,

find_library(GPD_LIB NAMES gpd PATHS /usr/local/lib PATH_SUFFIXES lib NO_DEFAULT_PATH)

Should I specify the path and if so how?

Thank you in advance!

k-okada commented 4 years ago

did you install GBP library? It seems you need to compile and install by your self. It also reuires PCL 1.9, which is not released under even 18.04, so it will break your environment . Be careful. https://github.com/atenpas/gpd_ros#1-installation

In my opinion, catkin provides smart way to integrate ros package and cmake libraries. download gbp within your workspace, apply patch https://gist.github.com/k-okada/6e5350406cb45de173b996d958be1e42 run catkin config --install catkin b gbp (source install/setup.bash)? catkin b gbp_ros

shmpwk commented 4 years ago

Thank you for your reply.

did you install GBP library?

Actually, I installed GPD, and confirmed it works, but found that it failed to register GPD library under /usr/local. So I moved to /$(PATH_TO_gpd)/gpd/build, tried sudo make install and succeeded to use GPD as shared library.

Thank you for suggesting the other way of integrating ros package and library.