如何编译具有正确架构的 FFTW 库? [英] How to compile the FFTW libraries with correct architecture?
问题描述
但是我得到了架构 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
对于每个 make
和 configure
.所以这就是为什么这个脚本不能正常工作.
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屋!