I\'m working with Point Cloud Library. It\'s mostly in C++ When I compile it, gives such error:
[ 0%] Building CXX object common/CMakeFiles/pcl_common.dir/s
You can add -march=native -mno-avx This worked for me.
-march=native -mno-avx
In my CMakeLists.txt, I added the above to the CMAKE_CXX_FLAGS :
CMAKE_CXX_FLAGS
SET(CMAKE_CXX_FLAGS "-ggdb -O3 -fPIC -std=c++0x -march=native -mno-avx")
[Source can be found in this page.]