二、另一种思路:在CMAKELISTS中取消编译器的一些设置
此方法来自ORBSLAM_with_pointcloud_map讨论区
在CMAKELISTS中删除-march=native
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -march=native ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O3 -march=native")
在Thirdparty/g2o/CMakeLists.txt中删除-march=native
# Compiler specific options for gcc
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -march=native")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -march=native")
标签:map,march,转储,ORBSLAM,FLAGS,RELEASE,CMAKE,O3,native From: https://blog.51cto.com/u_15202985/6005789