fast icon indicating copy to clipboard operation
fast copied to clipboard

Make error on aarch64

Open FSet89 opened this issue 5 years ago • 5 comments

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’

FSet89 avatar Jun 28 '19 08:06 FSet89

same question on Ubuntu16.04, have you solved it?

voyage19941119 avatar Nov 01 '19 10:11 voyage19941119

the same question on jetso nano ..............

catsostrong avatar Mar 18 '20 09:03 catsostrong

@catsostrong have you solve this question? @voyage19941119

JinLn avatar Nov 02 '21 06:11 JinLn

Could you please give -fsee a try? I am not sure if that will solve it

Rainerino avatar May 19 '22 16:05 Rainerino

I was able to build on an arm64 architecture (jetson nano with Ubuntu 18.04) using catkin build. Two things:

  1. 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.
  2. 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") with SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -march=armv8-a")

This worked for me, hope it helps!

seqwalt avatar Jun 11 '22 00:06 seqwalt