axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
868 stars 195 forks source link

Compilation error: NEON intrinsics not available with the soft-float ABI #1158

Closed asnagni closed 1 year ago

asnagni commented 1 year ago
  1. Download files from repository
  2. Follow installation
  3. Create project for ios arm64
  4. Build
  5. Then I will get the error message: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/arm_neon.h:28:2 "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard"

Would you know how to fix this issue? I added the '-mfloat-abi=hard' flag in Compiler flags fo: C Flags & C++ Flags I also tried the '-mfloat-abi=softfp '

Thank you!

halx99 commented 1 year ago

The axmol cmake build system haven't add soft-float flag for arm64, for arm64 neon, you don't needs specific any flags.

asnagni commented 1 year ago

Hi, Yes you are correct. I needed to set manually in Xcode the the architecture to “Standard Architecture “arm64””

Thank you, Stay safe

On Apr 1, 2023, at 9:35 PM, Deal(一线灵) @.***> wrote:

The axmol cmake build system haven't add soft-float flag for arm64, for arm64 neon, you don't needs specific any flags.

— Reply to this email directly, view it on GitHub https://github.com/axmolengine/axmol/issues/1158#issuecomment-1493193878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI54DTEAEE6ITKGIEBAILATW7DJWBANCNFSM6AAAAAAWP4BKIM. You are receiving this because you authored the thread.

asnagni commented 1 year ago

It's working. Thank you