chili-epfl / ros_markers

ROS wrapper for the EPFL's chilitags library
BSD 3-Clause "New" or "Revised" License
7 stars 18 forks source link

Cmake Error while compiling ros_marker #4

Open ktiwari9 opened 10 years ago

ktiwari9 commented 10 years ago

I have created a new catkin workspace named baxter_ws and I have added the chilitags repository and ros_marker repository as a catkin package in it. When i do catkin_make, i get the following error : -- +++ processing catkin package: 'ros_markers' -- ==> add_subdirectory(ros_markers) -- Using these message generators: gencpp;genlisp;genpy -- checking for one of the modules 'chilitags' CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:350 (message): None of the required 'chilitags' found Call Stack (most recent call first): ros_markers/CMakeLists.txt:19 (pkg_search_module)

It is being caused by this line in the CMake file (already provided on your ros_marker repository) : find_package(PkgConfig) pkg_search_module(CHILITAGS REQUIRED chilitags)

Any suggestions on how to fix this ?

severin-lemaignan commented 10 years ago

The error message says: None of the required 'chilitags' found Did you first install chilitags, as I told you in the previous issue?

ktiwari9 commented 10 years ago

Okay you were right. The chilitags was not installed properly. So, I did this again. Now i have this error : viki@c3po:~/dev/baxter_inspace_ws$ roslaunch ros_markers detect.launch ... logging to /home/viki/.ros/log/b368a0ca-ea67-11e3-b170-080027b3edc7/roslaunch-c3po-9055.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://c3po:33766/

SUMMARY

PARAMETERS

NODES / ros_markers (ros_markers/detect)

auto-starting new master process[master]: started with pid [9069] ROS_MASTER_URI=http://localhost:11311

setting /run_id to b368a0ca-ea67-11e3-b170-080027b3edc7 process[rosout-1]: started with pid [9082] started core service [/rosout] /home/viki/dev/baxter_inspace_ws/devel/lib/ros_markers/detect: error while loading shared libraries: libchilitags.so: cannot open shared object file: No such file or directory [ros_markers-2] process has died [pid 9094, exit code 127, cmd /home/viki/dev/baxter_inspace_ws/devel/lib/ros_markers/detect image:=/camera/image_raw __name:=ros_markers __log:=/home/viki/.ros/log/b368a0ca-ea67-11e3-b170-080027b3edc7/ros_markers-2.log]. log file: /home/viki/.ros/log/b368a0ca-ea67-11e3-b170-080027b3edc7/ros_markers-2*.log process[ros_markers-2]: started with pid [9094] ^C[rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done

But when i do locate libchilitags.so I can see the file in my system. viki@c3po:~/dev/baxter_inspace_ws$ locate libchilitags.so /home/viki/Desktop/chilitags/build/src/libchilitags.so /usr/local/lib/libchilitags.so

How can i fix this ?