fast
fast copied to clipboard
Make error on aarch64
I am trying to build on a Aarch64 architecture:
git clone https://github.com/uzh-rpg/fast.git
cd fast
mkdir build
cd build
cmake ..
make
I get the following error on make:
c++: error: unrecognized command line option ‘-mmmx’ c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? c++: error: unrecognized command line option ‘-msse’; did you mean ‘-fdse’? c++: error: unrecognized command line option ‘-msse2’ c++: error: unrecognized command line option ‘-msse3’ c++: error: unrecognized command line option ‘-mssse3’
same question on Ubuntu16.04, have you solved it?
the same question on jetso nano ..............
@catsostrong have you solve this question? @voyage19941119
Could you please give -fsee
a try? I am not sure if that will solve it
I was able to build on an arm64 architecture (jetson nano with Ubuntu 18.04) using catkin build. Two things:
- In CMakeLists.txt, note at the top it only does the arm build if the environment variable ARM_ARCHITECTURE is defined. So the first step is do
export ARM_ARCHITECTURE=true
in the terminal you will catkin build in. - The CMakeList.txt is set up for an old version of the odroid I guess, so replace
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -mfpu=neon -march=armv7-a")
withSET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -march=armv8-a")
This worked for me, hope it helps!