GASD Descriptor - undefined reference

classic Classic list List threaded Threaded
1 message Options
tbb
Reply | Threaded
Open this post in threaded view
|

GASD Descriptor - undefined reference

tbb
Hey there,

I'm trying to use the GASD Descriptor for some work.
I've pulled the latest version from git (master branch).
But when I try to compile my code, I'm getting:

undefined reference to `pcl::GASDEstimation<pcl::PointXYZ, pcl::GASDSignature512>::compute(pcl::PointCloud<pcl::GASDSignature512>&)'
gasd_descriptor.cc:(.text.startup+0xdc6): undefined reference to `pcl::operator<<(std::ostream&, pcl::GASDSignature512 const&)'

I've used PCL 1.7 before (which is still on my hard drive). So now 1.8 and 1.7 are both
in the lib folder.

Here is my cmake list file:

cmake_minimum_required(VERSION 2.8.3)
project(aslam_cv_cameras)

find_package(catkin_simple REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)

find_package(catkin REQUIRED COMPONENTS 
  roscpp
  rospy
  std_msgs
  geometry_msgs
  message_generation
)
find_package(PCL 1.8 REQUIRED) 
FIND_PACKAGE(OpenCV REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
include_directories(${catkin_INCLUDE_DIRS})
link_directories(${PCL_LIBRARIES})
add_definitions(${PCL_DEFINITIONS})

#############
# LIBRARIES #
#############
set(SOURCES
  src/gasd_descriptor.cc
)
cs_add_library(${PROJECT_NAME} ${SOURCES})

add_doxygen(NOT_AUTOMATIC)

##########
# EXPORT #
##########
cs_install()
cs_export()

add_definitions(-std=c++11)
cs_add_executable(${PROJECT_NAME}_projection src/gasd_descriptor.cc)

target_link_libraries(${PROJECT_NAME}_projection
  ${catkin_LIBRARIES}  
  ${PROJECT_NAME}
  ${PCL_LIBRARIES}
  ${OpenCV_LIBRARIES}
)

Anybody knows where the root of the problem could be? Compiling other PCL code works though (as example PCL Range Image)

Thanks!


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users