Install Pangolin

Posted by Tong on November 25, 2018

今天不小心把安装好的Pangolin删掉了,而且还把ORB-SLAM2移到了别的文件夹,导致需要重新编译pangolin和ORB-SLAM2。Pangolin的下载地址是这个网站。下面是

Error 1

/usr/local/include/TooN/internal/allocator.hh:68:19: error: ‘debug_initialize’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] 
	debug_initialize(my_data, Size); 
/usr/local/include/TooN/internal/operators.hh:54:83: error: expected ‘)’ before ‘(’ token

Solution: 根据这个issue,了解到可能是TooN出了问题,所以我们要把pangolin文件夹下的src/CMakeLists.txt文件进行相应修改,即注释到一些代码。之后就正常编译就行。

#option(BUILD_PANGOLIN_TOON "Build support for TooN matrix types" ON)

#if(BUILD_PANGOLIN_TOON)

#  find_package(TooN QUIET)

#  if(TooN_FOUND)

#    set(HAVE_TOON 1)

#    list(APPEND USER_INC  ${TooN_INCLUDE_DIR} )

#    message(STATUS "TooN Found and Enabled")

#  endif()

#endif()