ubuntu环境编译pcl错误解决方案

ubuntu环境下编译pcl错误解决

将编译过程中遇到的问题以及在网上收集到的解决方法记下来,以防忘记


1:Error: no such instruction: vfmadd312ss

我编译过程中出现该问题是由于CPU是i7

解决方法:

cd ..
cd cmake
sudo gedit pcl_find_sse.cmake

将 "-march=native" 替换为 "-march=corei7" 


参考链接:http://blog.csdn.net/u014222645/article/details/45232917


2:relocation R_X86_64_PC32 against symbol `pcl::TimeTrigger::thread_function()' can not be used when making a shared object; recompile with -fPIC

解决方法:

sudo ccmak ../

配置cmake文件时,

CMAKE_CXX_FALGS设置为-fpic#注意一定要是小写字母,-fPIC就没用

CMAKE_C_FLAGS:-fpic





你可能感兴趣的:(pcl编译,解决方案,recompile,with,-fPIC,vfmadd312ss)