Open bobododosjl opened 1 month 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>
他这个算法可以估计车的位姿吗?
恩,这个我之前查到怎么解决了。
最后遇到这个问题CMake Error at CMakeLists.txt:60 (target_link_libraries): Cannot specify link libraries for target "ORB_SLAM2" which is not built by this project.
请问执行,./build.sh时候 /MapDrawer.cc:684:13: error: ‘GLUquadricObj’ was not declared in this scope,这个怎么解决呢?所有的依赖都装好了。