(转载请说明出处)
1.
下载源码
http://www.vesperix.com/arm/fftw-arm/source/index.html
2.
配置 重点是配置这块
查看解压源码中的 readme 和install 文本
在终端 进入源码目录 ./configure --help 查看配置帮助
./configure --enable-single --enable-neon --prefix=/usr/local/fftw_arm --host=arm-linux CC=arm-linux-gcc CFLAGS="-march=armv4t -mfloat-abi=softfp -mtune=arm920t -O3 -mfpu=neon -ftree-vectorize -ffast-math" --build=i686-pc-linux-gnu --target=arm-linux --disable-fortran --enable-shared=yes --with-gcc-arch=armv4t --enable-armv7a-cycle-counter ARM_CPU_TYPE=ARM920T ARM_FLOAT_ABI=softfp
--build=i686-pc-linux-gnu 本地的GCC
不然出现如下错误信息
configure:4273: checking whether we are cross compiling
configure:4281: arm-linux-gcc -o conftest conftest.c >&5
configure:4285: $? = 0
configure:4292: ./conftest
./configure: line 4294: ./conftest: cannot execute binary file
configure:4296: $? = 126
configure:4303: error: in `/opt_qt4.5/opt/EmbedSky/fftw-3.2.2-arm':
configure:4305: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
--host=arm-linux CC=arm-linux-gcc 交叉编译器 用于ARM9 平台