Could not build lib with #include <arm_neon.h>
-
When I bulid a .a lib with #include <arm_neon.h> with compiler Apple Clang (arm64),It get error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard".
and I add CONFIG += NEON
QMAKE_CFLAGS += -mfpu=neon -mfloat-abi=hard
QMAKE_CXXFLAGS += -mfpu=neon -mfloat-abi=hard
in pro,It got same error.How to resolve it?
Qt 6.5.3
-
When I bulid a .a lib with #include <arm_neon.h> with compiler Apple Clang (arm64),It get error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard".
and I add CONFIG += NEON
QMAKE_CFLAGS += -mfpu=neon -mfloat-abi=hard
QMAKE_CXXFLAGS += -mfpu=neon -mfloat-abi=hard
in pro,It got same error.How to resolve it?
Qt 6.5.3
@Salor said in Could not build lib with #include <arm_neon.h>:
and I add CONFIG += NEON
Did you do a complete rebuild after making these changes?
-
@Salor said in Could not build lib with #include <arm_neon.h>:
and I add CONFIG += NEON
Did you do a complete rebuild after making these changes?