gaoxiang12 / slambook2

edition 2 of the slambook
MIT License
5.39k stars 2k forks source link

ch3关于visualizeGeometry error: ‘decay_t’ is not a member of ‘std’; did you mean ‘decay’? #237

Open joey857 opened 2 years ago

joey857 commented 2 years ago

主要是因为现在系统已有的g++ gcc不支持c++11 ; 解决方案如下:

在CMakeLists中添加c++ 11标准支持

set( CMAKE_CXX_FLAGS "-std=c++14" )

Genozen commented 1 year ago

Added this to all the sub-folders that has a CMakeLists.txt and it works.

Rosa712 commented 11 months ago

我添加了c++14支持仍然报这个错 是pagolin版本的原因吗

jujimeizuo commented 11 months ago

我添加了c++14支持仍然报这个错 是pagolin版本的原因吗

一个是需要改成C++14,还有就是GCC版本至少是4.9以上(完全可以是最新的),再者 Pagolin版本在 slambook2/3rdparty/Pangolin 里直接编译就好了,不要纠结其他版本