Closed SPGC closed 5 months ago
Solution found. To solve this problem it's need to download file from Pangolin repository and put it in ORB_SLAM3/cmake_modules dir, after that in CMakeList.txt add:
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules/)
...
find_package(OpenGL)
find_package(epoxy REQUIRED)
include_directories(
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/include/CameraModels
${PROJECT_SOURCE_DIR}/Thirdparty/Sophus
${EIGEN3_INCLUDE_DIR}
${Pangolin_INCLUDE_DIRS}
${epoxy_INCLUDE_DIRS}
)
...
target_link_libraries(${PROJECT_NAME}
${OpenCV_LIBS}
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
${PROJECT_SOURCE_DIR}/Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/Thirdparty/g2o/lib/libg2o.so
-lboost_serialization
-lcrypto
${epoxy_LIBRARIES}
)
thanks, it works
Solution found. To solve this problem it's need to download file from Pangolin repository and put it in project dir, after that in CMakeList.txt add:
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules/) ... find_package(OpenGL) find_package(epoxy REQUIRED) include_directories( ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/include/CameraModels ${PROJECT_SOURCE_DIR}/Thirdparty/Sophus ${EIGEN3_INCLUDE_DIR} ${Pangolin_INCLUDE_DIRS} ${epoxy_INCLUDE_DIRS} ) ... target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${EIGEN3_LIBS} ${Pangolin_LIBRARIES} ${PROJECT_SOURCE_DIR}/Thirdparty/DBoW2/lib/libDBoW2.so ${PROJECT_SOURCE_DIR}/Thirdparty/g2o/lib/libg2o.so -lboost_serialization -lcrypto ${epoxy_LIBRARIES} )
Well done, it works. By the way, the file should be added to the ORB_SLAM3/cmake_modules
dir.
Solution found. To solve this problem it's need to download file from Pangolin repository and put it in project dir, after that in CMakeList.txt add:
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules/) ... find_package(OpenGL) find_package(epoxy REQUIRED) include_directories( ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/include/CameraModels ${PROJECT_SOURCE_DIR}/Thirdparty/Sophus ${EIGEN3_INCLUDE_DIR} ${Pangolin_INCLUDE_DIRS} ${epoxy_INCLUDE_DIRS} ) ... target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${EIGEN3_LIBS} ${Pangolin_LIBRARIES} ${PROJECT_SOURCE_DIR}/Thirdparty/DBoW2/lib/libDBoW2.so ${PROJECT_SOURCE_DIR}/Thirdparty/g2o/lib/libg2o.so -lboost_serialization -lcrypto ${epoxy_LIBRARIES} )
Well done, it works. By the way, the file should be added to the
ORB_SLAM3/cmake_modules
dir.
Yes, sure, forgot to mention. Fixed this, thank you!
All dependencies listed in ReadMe are installed. Target C++ version changed to 14, otherwise there were errors connected to Pangoline