Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Could not build lib with #include <arm_neon.h>
Forum Updated to NodeBB v4.3 + New Features

Could not build lib with #include <arm_neon.h>

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 360 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Salor
    wrote on last edited by Salor
    #1

    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

    07fe9a91-693d-4029-873a-86b315403c95-image.png

    jsulmJ 1 Reply Last reply
    0
    • S Salor

      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

      07fe9a91-693d-4029-873a-86b315403c95-image.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • jsulmJ jsulm

        @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?

        S Offline
        S Offline
        Salor
        wrote on last edited by
        #3

        @jsulm YES,The same error

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved