anthonix / ffts

The Fastest Fourier Transform in the South
http://anthonix.com/ffts
Other
536 stars 213 forks source link

Not able to compile using NDK #75

Open babuya7 opened 5 years ago

babuya7 commented 5 years ago

Hi, I tried to compile FFT Neon code in ubuntu 16.04. I ran " ./configure --enable-neon --with-pic --enable-static --build=CONFBUILD=x86-unknown-linux --host=arm-eabi --prefix=/home/amar/FFT/ffts" . For CXX and CC , I am using "gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc

I am able to configure , also in build folder, cmake .. commands works properly. but when I using make command for making executable then following error occurs: /home/amar/FFT/ffts/src/ffts_trig.c:937:36: error: request for member ‘d’ in something not a structure or union w[log_2][0] = hs[2 * log_2].d * (w[log_2 + 1][0] + w[offset][0]); ^ /home/amar/FFT/ffts/src/ffts_trig.c:938:36: error: request for member ‘d’ in something not a structure or union w[log_2][1] = hs[2 * log_2].d * (w[log_2 + 1][1] + w[offset][1]); Please suggest me how to configure the setup for ARM devices and for how to perform cross compilation for ARM devices.

sevagh commented 4 years ago

FFTS only supports 32-bit ARM, not 64/aarch64. For aarch64, I use Ne10 FFT e.g. https://github.com/sevagh/ElectroPARTYogram/blob/master/app/src/main/cpp/CMakeLists.txt#L50