[Jderobot] Error al compilar un componente

dmartino dmo19sw en gmail.com
Lun Oct 28 13:54:06 CET 2013


Muchas gracias, ya no me da problemas eso mismo desde que lo añadí en el
CMakeList.txt, pero resulta que al hacer el enlazado con las librerías de
pcl-1.7 me casca, este es un pequeño trozo de la traza que obtengo por
pantalla:

CMakeFiles/firstplane.dir/segment.cpp.o:(.rodata._ZTVN3pcl15SACSegmentationINS_8PointXYZEEE[vtable
for pcl::SACSegmentation<pcl::PointXYZ>]+0x28): undefined reference to
`pcl::PCLBase<pcl::PointXYZ>::setIndices(boost::shared_ptr<std::vector&lt;int,
std::allocator&lt;int> > > const&)'
CMakeFiles/firstplane.dir/segment.cpp.o:(.rodata._ZTVN3pcl15SACSegmentationINS_8PointXYZEEE[vtable
for pcl::SACSegmentation<pcl::PointXYZ>]+0x30): undefined reference to
`pcl::PCLBase<pcl::PointXYZ>::setIndices(boost::shared_ptr<std::vector&lt;int,
std::allocator&lt;int> > const> const&)'
CMakeFiles/firstplane.dir/segment.cpp.o:(.rodata._ZTVN3pcl15SACSegmentationINS_8PointXYZEEE[vtable
for pcl::SACSegmentation<pcl::PointXYZ>]+0x38): undefined reference to
`pcl::PCLBase<pcl::PointXYZ>::setIndices(boost::shared_ptr<pcl::PointIndices
const> const&)'

Aquí están los includes y librerías indicadas en el CMakeList.txt:

include_directories(
    ${INTERFACES_CPP_DIR}
    ${LIBS_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}
    /usr/include/pcl-1.7
    ${PCL_INCLUDE_DIRS}
    /usr/include/eigen3
)

add_executable (firstplane  ${SOURCE_FILES})

TARGET_LINK_LIBRARIES(firstplane
    ${INTERFACES_CPP_DIR}/jderobot/libJderobotInterfaces.so
    ${libglademm_LIBRARIES}
    ${OpenCV_LIBRARIES} 
        ${gsl_LIBRARIES}      
	${gtkmm_LIBRARIES}
	${gtkglextmm_LIBRARIES} 
	${libgnomecanvasmm_LIBRARIES}
	${Boost_LIBRARIES}
        ${PCL_LIBRARIES}
	glut
	Ice IceUtil
)



--
View this message in context: http://jderobot-developer-list.2315034.n4.nabble.com/Error-al-compilar-un-componente-tp4641763p4641765.html
Sent from the Jderobot Developer List mailing list archive at Nabble.com.


More information about the Jde-developers mailing list