FFTW ARM cross compile
来源:互联网 发布:有限元模型是算法吗 编辑:程序博客网 时间:2024/05/21 06:59
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这两个变量。
./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
- FFTW ARM cross compile
- linux arm cross-compile
- arm cross compile Q&A
- How to cross-compile OpenSSL for ARM
- cross-compile minigui in arm 2410
- Cross Compile Python 2.5.2 For ARM
- cross compile toolchain for arm/android
- Linux ARM Cross Compile On Intel x86
- arm-linux-cross compile chain building
- cross compile qt5everywhere for arm CortexA8
- ARM-Linux Gcc cross Compile Environment Set
- How to cross-compile Chromium for ARM
- cross compile
- ARM-Linux Cross-Compile Chain - Building From Scratch
- Cross Compile "bluez-4.18" Arm-xScale Platform (原创)
- How to cross compile the PPP to arm-xscale
- qt-mobility1.2.0-arm-cross-compile with4.7.3
- arm-linux-gcc compile the cross-platform mpich2 on ubuntu
- HTML5初学者福利!11个在线学习网站推荐
- mysql配置远程访问
- JavaScript字符串基础知识集锦
- 4.14、变量的声明和定义
- 电脑维修和维护 毕业总结及经验报告
- FFTW ARM cross compile
- BloomFilter——大规模数据处理利器
- JNI/NDK开发指南(二)——JVM查找java native方法的规则
- 借鉴:jQueryMobile 弹出提示框 confirm
- android中的自定义广播
- phpcms v9模板制作笔记案例
- Leetcode:Consecutive Numbers
- HomeBrew套件管理器安装使用
- Android App 内存泄露之Handler