Hi all,
I build gtsam with default config except installing gtsam 4.1rc in my home path. In a ros package i config CMakeLists.txt as following:
set(CMAKE_PREFIX_PATH "/home/jxl/Documents/third_softwares/gtsam-4.1rc/INSTALL/lib/cmake/GTSAM/")
set(GTSAM_DIR "/home/jxl/Documents/third_softwares/gtsam-4.1rc/INSTALL/")
find_package(GTSAM REQUIRED QUIET)
include_directories(${GTSAM_INCLUDE_DIR})
link_directories(${GTSAM_LIBRARY_DIRS})
add_executable(executable_name source_cpp_files)
target_link_libraries(executable_name gtsam)
when catkin_make , output is:
/usr/bin/ld: cannot find -lgtsam
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/jxl/Documents/third_softwares/gtsam-4.1rc/INSTALL/lib/ and sudo ldconfig does not work, so how should i do to solve this problem?
Thanks for your help in advance