FFTW ARM cross compile
2015-03-06 14:42
1761 查看
1.使用版本和平台:
FFTW版本:fftw-3.2.2-arm 和 fftw-3.3.4 (两个版本均成功编译)
本人所适用的arm平台是单核cortex-A7平台。
2. 配置:
2.1 查看配置参数
其中最后有一段话:
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
MPICC MPI C compiler command
F77 Fortran 77 compiler command
FFLAGS Fortran 77 compiler flags
因为,随后的配置中,我们需要配置CC 和CFLAGS这两个变量。
2.2 设置配置参数
2.3 配置参数含义
CC=arm-none-linux-gnueabi-gcc
CFLAGS="-march=armv7-a -mfpu=neon -fPIC -ldl -mfloat-abi=softfp"
-march=armv7-a: 选择armv7系列指令集a系列,适用于cortex A系列指令集;
-mfpu=neon: 选择neon协处理器作为浮点处理器;
-fPIC : Position Independent Code means that the generated machine code is not dependent on being located at a specific
address in order to work
-ldl: link dynamic linking library, libdl.so
-mfloat-abi=softfp: 选择软浮点ABI
3.编译:
make -j8
make install
4. 参考:
http://blog.csdn.net/zwjzwj108108/article/details/24305547 http://blog.163.com/qimo601@126/blog/static/15822093201382524244772/ http://blog.jimjh.com/compiling-open-source-libraries-with-android-ndk-part-2.html http://stackoverflow.com/questions/26644610/how-to-cross-compile-fftw3-for-aarch64-with-ndk
FFTW版本:fftw-3.2.2-arm 和 fftw-3.3.4 (两个版本均成功编译)
本人所适用的arm平台是单核cortex-A7平台。
2. 配置:
2.1 查看配置参数
./configure --help
其中最后有一段话:
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
MPICC MPI C compiler command
F77 Fortran 77 compiler command
FFLAGS Fortran 77 compiler flags
因为,随后的配置中,我们需要配置CC 和CFLAGS这两个变量。
2.2 设置配置参数
./configure --prefix=/home/zhouxiaoyong/fftw3_test --disable-fortran --with-slow-timer --host=arm-none-linux-gnueabi --enable-single --enable-neon --enable-shared CC=arm-none-linux-gnueabi-gcc CFLAGS="-march=armv7-a -mfpu=neon -fPIC -ldl -mfloat-abi=softfp"
2.3 配置参数含义
CC=arm-none-linux-gnueabi-gcc
CFLAGS="-march=armv7-a -mfpu=neon -fPIC -ldl -mfloat-abi=softfp"
-march=armv7-a: 选择armv7系列指令集a系列,适用于cortex A系列指令集;
-mfpu=neon: 选择neon协处理器作为浮点处理器;
-fPIC : Position Independent Code means that the generated machine code is not dependent on being located at a specific
address in order to work
-ldl: link dynamic linking library, libdl.so
-mfloat-abi=softfp: 选择软浮点ABI
3.编译:
make -j8
make install
4. 参考:
http://blog.csdn.net/zwjzwj108108/article/details/24305547 http://blog.163.com/qimo601@126/blog/static/15822093201382524244772/ http://blog.jimjh.com/compiling-open-source-libraries-with-android-ndk-part-2.html http://stackoverflow.com/questions/26644610/how-to-cross-compile-fftw3-for-aarch64-with-ndk
相关文章推荐
- cross_compile glibc for arm
- cross_compile linphone for arm
- How To Cross Compile Python 2.5.2 For ARM -- by Border
- cross-compile minigui in arm 2410
- linux arm cross-compile
- QtCreator on Windows to Cross Compile for Linux ARM with CodeSourcery Toolchain
- Ubuntu 12.04 is installed arm-linux-gcc-4.4.3.tar.gz (cross compile environment)
- static cross compile gtk-2.16.6+gtk-directfb+arm-linux (arm-linux-gcc-3.4.4+glib-2.3.5)
- Cross compile gdbserver and use it in ARM linux (在ARM uClinux下编译和使用gdbserver)
- Linux ARM Cross Compile On Intel x86
- Make ARCH=arm CROSS_COMPILE=arm-linux-gcc menuconfig 分析
- qt-mobility-opensource-src-1.2.0-arm cross compile error solved
- ARM-Linux Gcc cross Compile Environment Set
- Cross compile gdbserver and use it in ARM linux (在ARM uClinux下编译和使用gdbserver)
- arm-linux-gcc compile the cross-platform mpich2 on ubuntu
- arm cross compile Q&A
- How to cross-compile OpenSSL for ARM
- How to cross-compile Chromium for ARM
- arm-linux-cross compile chain building
- cross compile toolchain for arm/android