Closed pmolina7 closed 9 years ago
I suspect that your CMake is not pointing to libnabo or something related. Did you follow this: https://github.com/ethz-asl/libpointmatcher/blob/master/doc/Compilation.md
If it doesn't work, could you post your CMakeCache.txt?
Libpoint matcher has to compile with openmp. @pomerlef you need to add the openmp flag to pointmatcher's cmakelist.
@pomerlef Preferably copy this: https://github.com/ethz-asl/libnabo/blob/master/CMakeLists.txt#L51
@simonlynen Any ways to have those flags optional? There are quite some code relying on libnabo...
If the flag is required, shouldn't it be provided in the link flags for nabo through the generated libnaboConfig.cmake
?
@pomerlef it is optional https://github.com/ethz-asl/libnabo/blob/master/CMakeLists.txt#L51 if the user has openmp it is activated. @stephanemagnenat yes I will try to export that properly.
@stephanemagnenat I will investigate why my previous approach: https://github.com/ethz-asl/libnabo/blob/master/libnaboConfig.cmake.in#L16 doesn't seem to work
Thanks @simonlynen Adding this: https://github.com/ethz-asl/libnabo/blob/master/CMakeLists.txt#L51 to the libpointmatcher CMakeLists.txt file solves the issue. Once you resolve it permanently, I can try this all again.
This should be fix with the commit 790f2b5daf0557a0e87a80d782ac9f43190620e6
@pmolina7 Could you update you libnabo repository, clean your build files and rebuild libnabo and libpointmatcher? Everything should work now.
Thank you @pomerlef - it all builds correctly now :)
I am unable to build libpointmatcher (master branch) from source. I tried using the PPAs but for precise they conflict with the ROS version of yaml cpp.
I have Eigen and Boost installed. Installed libNabo from source as well.(master branch)
There are linking errors:
Please let me know if I am making a mistake. Thank you for your time and help.