Compile errors with Assembler messages

后端 未结 7 1952
天命终不由人
天命终不由人 2021-01-14 08:38

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         


        
7条回答
  •  北海茫月
    2021-01-14 09:18

    You can add -march=native -mno-avx This worked for me.

    In my CMakeLists.txt, I added the above to the CMAKE_CXX_FLAGS :

    SET(CMAKE_CXX_FLAGS "-ggdb -O3 -fPIC -std=c++0x -march=native -mno-avx")
    

    [Source can be found in this page.]

提交回复
热议问题