miaTian99 / PO-SLAM

This repo proposes a SAM-augmented target-oriented SLAM framework that enables planetary rovers to identify target, estimate the relative position, and reconstruct/represent the target from abstraction to precision. This object SLAM algorithms can work in an unstructured, weakly textured, and lunar terrain environment.
MIT License
1 stars 0 forks source link

编译遇到的问题 #1

Open bobododosjl opened 1 month ago

bobododosjl commented 1 month ago

请问执行,./build.sh时候 /MapDrawer.cc:684:13: error: ‘GLUquadricObj’ was not declared in this scope,这个怎么解决呢?所有的依赖都装好了。

TINY-KE commented 3 weeks ago

This is my solution. Should not only import pangolin.

1) In the CMakeLists.txt file, add the following:

find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)

include_directories(${OPENGL_INCLUDE_DIRS})
include_directories(${GLUT_INCLUDE_DIRS})

target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})

2) In the corresponding cpp file, add the header file: #include <GL/glu.h>

bobododosjl commented 3 weeks ago

他这个算法可以估计车的位姿吗?

bobododosjl commented 3 weeks ago

恩,这个我之前查到怎么解决了。

bobododosjl commented 3 weeks ago

最后遇到这个问题CMake Error at CMakeLists.txt:60 (target_link_libraries): Cannot specify link libraries for target "ORB_SLAM2" which is not built by this project.