point cloud library - CMake Warning at CMakeLists.txt (add_executable) -


i'm using point cloud library own project , links pcl project cmakelists.txt described below :

project(scanmatching) cmake_minimum_required(version 2.8)  find_package(pcl 1.8 required)  include_directories(${pcl_include_dirs}) link_directories(${pcl_library_dirs}) add_definitions(${pcl_definitions})  add_executable(modeling main.cpp custom.hpp) target_link_libraries(modeling ${pcl_libraries}) 

it used work after mistakenly typed sudo apt-get autoremove (not apt autoremove)

i following cmakeerrors (snippet of cmake result) :

cmake warning @ cmakelists.txt:11 (add_executable):   cannot generate safe linker search path target modeling because files   in directories may conflict libraries in implicit directories:  link library [libpcl_common.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_kdtree.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_octree.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_search.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_sample_consensus.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_filters.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_io.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_features.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_keypoints.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_segmentation.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_visualization.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_surface.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_registration.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_tracking.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_recognition.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_outofcore.so] in /usr/lib may hidden files in:   /usr/local/lib link library [libpcl_people.so] in /usr/lib may hidden files in:   /usr/local/lib    of these libraries may not found correctly.   cmake warning @ cmakelists.txt:11 (add_executable):   cannot generate safe runtime search path target modeling because   files in directories may conflict libraries in implicit   directories: runtime library [libpcl_common.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_kdtree.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_octree.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_search.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_sample_consensus.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_filters.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_io.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_features.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_keypoints.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_segmentation.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_visualization.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_surface.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_registration.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_tracking.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_recognition.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_outofcore.so] in /usr/lib may hidden files in:   /usr/local/lib runtime library [libpcl_people.so] in /usr/lib may hidden files in:   /usr/local/lib    of these libraries may not found correctly.   -- generating done -- build files have been written to: /home/acenewgate/dropbox/workspace/jungki project/descriptormatching/build-descriptormatching-desktop-default 

how can modify cmakelists.txt avoid this?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -