环境:Ubuntu 20.04 LTS
问题:运行./pose_estimation_3d3d …/1.png …/2.png …/1_depth.png …/2_depth.png命令时,输出正确结果后,结果末尾出现
double free or corruption (out)
Aborted (core dumped)
问题2:error: inlining failed in call to always_inline ‘int _mm_popcnt_u32(unsigned int)’: target specific option mismatch
35 | _mm_popcnt_u32 (unsigned int __X)
以上两个问题的结果方法:
CmakeList.txt中的set(CMAKE_CXX_FLAGS “-std=c++11 -O2 ${SSE_FLAGS} -g -march=native”) 修改为
set(CMAKE_CXX_FLAGS “-std=c++14 -O2 ${SSE_FLAGS} -g ${CMAKE_CXX_FLAGS} -mpopcnt”)