赞
踩
$ sudo apt-get install libcanberra-gtk-module
在CMAKELISTS中取消编译器的一些设置
在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")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。