You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, someting goes wrong when I compile DiSCo-SLAM, in the following:
(1)Target "lio_sam_mapFusion" links to target "libnabo::nabo" but the target
was not found.
SOLVE:
I change: # Map Fushion libnabo::nabo
add_executable(${PROJECT_NAME}_mapFusion src/DiSCo-SLAM/mapFusion.cpp)
add_dependencies(${PROJECT_NAME}_mapFusion ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(${PROJECT_NAME}_mapFusion ${catkin_LIBRARIES}
${PCL_LIBRARIES} libnabo::nabo}
to # Map Fushion libnabo::nabo
add_executable(${PROJECT_NAME}_mapFusion src/DiSCo-SLAM/mapFusion.cpp)
add_dependencies(${PROJECT_NAME}_mapFusion ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(${PROJECT_NAME}_mapFusion ${catkin_LIBRARIES}
${PCL_LIBRARIES} nabo}
(2) the second problem is: /usr/bin/ld: //usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): undefined reference to symbol 'GOMP_parallel@@GOMP_4.0'
//usr/lib/x86_64-linux-gnu/libgomp.so.1: 无法添加符号: DSO missing from command line
Hello, someting goes wrong when I compile DiSCo-SLAM, in the following:
(1)Target "lio_sam_mapFusion" links to target "libnabo::nabo" but the target
was not found.
SOLVE:
I change:
# Map Fushion libnabo::nabo
add_executable(${PROJECT_NAME}_mapFusion src/DiSCo-SLAM/mapFusion.cpp)
add_dependencies(${PROJECT_NAME}_mapFusion ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(${PROJECT_NAME}_mapFusion ${catkin_LIBRARIES}
${PCL_LIBRARIES} libnabo::nabo}
to
# Map Fushion libnabo::nabo
add_executable(${PROJECT_NAME}_mapFusion src/DiSCo-SLAM/mapFusion.cpp)
add_dependencies(${PROJECT_NAME}_mapFusion ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(${PROJECT_NAME}_mapFusion ${catkin_LIBRARIES}
${PCL_LIBRARIES} nabo}
(2) the second problem is:
/usr/bin/ld: //usr/local/lib/libnabo.a(kdtree_cpu.cpp.o): undefined reference to symbol 'GOMP_parallel@@GOMP_4.0'
//usr/lib/x86_64-linux-gnu/libgomp.so.1: 无法添加符号: DSO missing from command line
SOLVE:
I change:
# Map Fushion libnabo::nabo
add_executable(${PROJECT_NAME}_mapFusion src/DiSCo-SLAM/mapFusion.cpp)
add_dependencies(${PROJECT_NAME}_mapFusion ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(${PROJECT_NAME}_mapFusion ${catkin_LIBRARIES}
${PCL_LIBRARIES} nabo}
to
# Map Fushion libnabo::nabo
add_executable(${PROJECT_NAME}_mapFusion src/DiSCo-SLAM/mapFusion.cpp)
add_dependencies(${PROJECT_NAME}_mapFusion ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(${PROJECT_NAME}_mapFusion ${catkin_LIBRARIES}
${PCL_LIBRARIES} nabo
gtsam fast_max-clique_finder scan_context "/usr/local/lib/libnabo.a" "/usr/lib/x86_64-linux-gnu/libgomp.so.1")
Then the compilation succeeded.
The text was updated successfully, but these errors were encountered: