mkdir build && cd build
cmake -DENABLE_TESTS=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release ..
make -- -j
I got:
[ 1%] Building CXX object CMakeFiles/kfr_dft.dir/include/kfr/dft/impl/convolution-impl.cpp.o
In file included from /home/pi/kfr/include/kfr/dft/impl/convolution-impl.cpp:26:
In file included from /home/pi/kfr/include/kfr/dft/impl/../convolution.hpp:28:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/filter.hpp:28:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/basic_expressions.hpp:28:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/../simd/operators.hpp:28:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/../simd/impl/operators.hpp:28:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/../simd/impl/function.hpp:25:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/../simd/impl/../../base/expression.hpp:28:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/../simd/platform.hpp:28:
In file included from /home/pi/kfr/include/kfr/dft/impl/../../base/../simd/types.hpp:28:
/home/pi/kfr/include/kfr/dft/impl/../../base/../simd/../kfr.h:82:2: error: "ARM builds require NEON support. Add -march=native
for native build or skip the check with CMT_FORCE_GENERIC_CPU=1"
#error "ARM builds require NEON support. Add -march=native for native build or skip the check with CMT_FORCE_GENERIC_CPU=1"
^
1 error generated.
make[2]: *** [CMakeFiles/kfr_dft.dir/build.make:63: CMakeFiles/kfr_dft.dir/include/kfr/dft/impl/convolution-impl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:157: CMakeFiles/kfr_dft.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
NEON is required for KFR to work and Raspberry Pi supports it.
You can add -DCMAKE_CXX_FLAGS=-march=native to force compiler to use all cpu features, as warning suggests.
when I running these commands:
I got:
kfr version:
commit 9fc73247f43b303617329294ae264613df4dce71
Raspbery PI 4 info:
clang++ --version: clang version 7.0.1-8+rpi3+deb10u2 (tags/RELEASE_701/final)