如何编译具有正确架构的 FFTW 库? [英] How to compile the FFTW libraries with correct architecture?

查看:31
本文介绍了如何编译具有正确架构的 FFTW 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照编译 fftw-3.3.4 上的脚本进行操作.

但是我得到了架构 x86_64 的所有库.这就是为什么我不能对它们进行脂肪处理.( libfftw3f_armv7.a, libfftw3f_x86_64.a, libfftw3f_arm64.a, libfftw3f_i386.a)

But I am getting all the libraries of architecture x86_64. Thats why I cannot lipo them. ( libfftw3f_armv7.a, libfftw3f_x86_64.a, libfftw3f_arm64.a, libfftw3f_i386.a)

那么知道如何更新此脚本以获得正确的架构吗?

So any idea how to update this script to get the correct architecture?

P.s.,通过配置.:

P.s., by config. :

./configure --host=arm-apple-darwin --target=arm-apple-darwin --enable-float --enable-neon

我收到错误:

配置:错误:需要带有 -mfpu=neon 的 gcc 版本

configure: error: Need a version of gcc with -mfpu=neon

所以我只是删除 --enable-neon 并且它有效.是不是搞错了?

So I just delete --enable-neon and it works. Is it a mistake?

非常感谢.

推荐答案

我想删除我的问题.但后来我看到有人把它作为最喜欢的问题,所以也许他和我一样有同样的愚蠢"错误.

I wanted to delete my Question. But then I saw that somebody has it as a favorite question so maybe he has the same "stupid" mistake like me.

我得到了架构 x86_64 的所有库,因为我犯了一个愚蠢的错误.花了很多时间才找到它.我正在添加 sudo对于每个 makeconfigure.所以这就是为什么这个脚本不能正常工作.

I was getting all the libraries of architecture x86_64 because I was making a stupid mistake. It tokes all this time to find it. I was adding sudo for every make and configure. So thats why this scrip was not working correctly .

这篇关于如何编译具有正确架构的 FFTW 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆