scanse / sweep-ros

Scanse Sweep ROS Driver and Node
MIT License
68 stars 62 forks source link

Catkin_make #20

Open corruptpony opened 7 years ago

corruptpony commented 7 years ago

After installing the package I try to do catkin_make, I get the following error:

error.txt

I did install the sweep-sdk as explained the in the readme. Can you help me solve this?

corruptpony commented 7 years ago

I have some more info, I put this in the cmake file:

MESSAGE( STATUS "CATKIN INC DIR " ${catkin_INCLUDE_DIRS} ) MESSAGE( STATUS "SWEEP INC DIR " ${LIBSWEEP_INCLUDE_DIR} ) MESSAGE( STATUS "SWEEP LIB " ${LIBSWEEP_LIBRARY} )

and it turns out the LIBSWEEP_INCLUDE_DIR and LIBSWEEP_LIBRARY are not set: CATKIN INC DIR /opt/ros/indigo/include/usr/include/eigen3/usr/include/usr/include/pcl-1.7 -- SWEEP INC DIR -- SWEEP LIB

Can anyone help me solve this?

corruptpony commented 7 years ago

After adding this line the node builds:

set(LIBSWEEP_LIBRARY /usr/local/lib/libsweep.so.1.3.0)

I feel like this shouldnt be needed and the LIBSWEEP_INCLUDE_DIR is still empty.

This line from the cmake doesnt give an error but it also doesnt really do much on the LIBSWEEP part.

target_include_directories(sweep_node SYSTEM PRIVATE ${LIBSWEEP_INCLUDE_DIR})