Solve the error of Jetson nano compiling elas-ros

Today, when compiling elas-ros with jetson nano, there were -msse3 errors and file not found errors, and the corresponding solutions are given in turn.

1. unrecognized command line option '-msse3', no recognized option -msse3

**elas-ros源码是针对intel x86处理器的,但jetson nano的架构时arm架构,所以不支持msse3指令优化,所以需要注释掉-msse3**
elas-ros文件夹下CMakeLists.txt的33行注释掉`#add_definitions(-msse3)`
libelas文件夹下CMakeLists.txt的第6行注释掉`#add_definitions(-msse3)`

2. The emmintrin.h and pmmintrin.h files were not found

 **这两个文件同样是intel处理器下的,需要使用`#include <sse2neon.h>`替换,网上下载sse2neon.h并保存到/usr/include文件夹下**
 下载地址[https://gitcode.net/mirrors/dltcollab/sse2neon]
 具体替换文件:
 1、elas.h的32行#include <emmintrin.h>
 2、filter.h的第25行#include <emmintrin.h>、26行#include <pmmintrin.h>

Guess you like

Origin blog.csdn.net/xwb_12340/article/details/130268747
Recommended