How to compile the FFTW libraries with correct architecture?

◇◆丶佛笑我妖孽 提交于 2019-12-06 16:09:12

问题


I followed the script on Compiling fftw-3.3.4.

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., by config. :

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

I am getting the error :

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

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

Thanks a lot.


回答1:


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.

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 .



来源:https://stackoverflow.com/questions/23962954/how-to-compile-the-fftw-libraries-with-correct-architecture

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!