uzh-rpg / fast

FAST corner detector by Edward Rosten
GNU Lesser General Public License v2.1
113 stars 89 forks source link

Make error on aarch64 #7

Open FSet89 opened 5 years ago

FSet89 commented 5 years ago

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’

voyage19941119 commented 4 years ago

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

catsostrong commented 4 years ago

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

JinLn commented 2 years ago

@catsostrong have you solve this question? @voyage19941119

Rainerino commented 2 years ago

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

seqwalt commented 2 years ago

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!