Page 1 of 1

libboost required on v10.0.0

Posted: Mon Jul 04, 2022 9:27 am
by matteolucarelli
Compile libvisiontransfer v10.0.0 on RedHat 8

Code: Select all

[ 83%] Linking CXX executable pcl_example
/usr/bin/ld: CMakeFiles/pcl_example.dir/pcl_example.cpp.o: undefined reference to symbol '_ZN5boost6system16generic_categoryEv'
Need to modify line 102 of CmakeLists.txt to include libboost, from:

Code: Select all

    target_link_libraries(pcl_example visiontransfer${LIB_SUFFIX} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_FILTERS_LIBRARIES} ${EXTRA_LIBS} )
to:

Code: Select all

    target_link_libraries(pcl_example visiontransfer${LIB_SUFFIX} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_FILTERS_LIBRARIES} ${EXTRA_LIBS} boost_system)

Re: libboost required on v10.0.0

Posted: Mon Jul 04, 2022 10:04 am
by k.schauwecker
Could you please check if the following alternative line resolves the problem for your Linux/PCL version:

Code: Select all

target_link_libraries(pcl_example visiontransfer${LIB_SUFFIX} ${PCL_LIBRARIES} ${EXTRA_LIBS} )
If this works for you we will add this change to the next release.

Re: libboost required on v10.0.0

Posted: Mon Jul 04, 2022 1:33 pm
by matteolucarelli
yes, also your line works

Re: libboost required on v10.0.0

Posted: Tue Jul 05, 2022 11:50 am
by k.schauwecker
OK, we will adjust this in the next release.