-
Notifications
You must be signed in to change notification settings - Fork 1.6k
How to build openblas for iOS? #1305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please post the build log, or at least the error messages you got ? |
Hi, @martin-frbg, when I executing the .sh file, the terminal just print this: "make: *** No rule to make target `libs'. Stop.". |
Strange. Are you sure that you are executing the .sh in the correct folder ? |
I put the .sh file into the unpacked OpenBLAS directory, the same as file "c_check". |
Hmm - you should see a "Makefile" there that definitely contains a |
I saw "Makefile". I tried 0.2.20 and "develop", both failed with same error message. |
Does |
Log for "make clean" : |
Alright, so it had already built at least parts of the code. Can you please run the script again now ? |
Every time I run "make clean", I got the same log message, maybe nothing built. After "make clean", I ran the script and got the same error message as before. I am using macOS Sierra 10.12.6. |
Unfortunately I do not have iOS (nor macOS) for testing, The error message suggests that there is something wrong with the Makefile, but it is unlikely that you would get the same broken file no matter which version you downloaded. Perhaps the message is just confusing, and it actually built a libopenblas ? (Or if nobody else comes up with a more intelligent idea, try just leaving off the "libs" from the "make" commandline in the script - which would tell it to do a full build) |
I tried "make" commandline without "libs", it works, but I can't find the .a file. |
That compile log appears to have come from an entirely different project - building protobuf-2.6.1 with the native compiler or something ? |
By the way the instruction in the wiki was copied from #569 - maybe you will find additional information in that issue as it has been updated since then. |
Sorry, I made a mistake on executing .sh. |
Not sure if anybody tried this for iOS, but in principle you would only need to replace the ARMV8 in the TARGET entry with ARMV7 (or the appropriate cortexa9/cortexa15 model for somewhat more optimized code, see TargetList.txt for the supported cpu models). If compiling for Android, see the corresponding wiki entry for Android NDK etc. |
So, did it work for you ? |
Yes, I got ARMV7.a now. Thank you very much. |
I tried https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-iPhone-iOS-(ARMv8), but it didn't work.
The text was updated successfully, but these errors were encountered: