Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6.5 static build for Mac does not include arm64 libraries
Forum Updated to NodeBB v4.3 + New Features

Qt 6.5 static build for Mac does not include arm64 libraries

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 442 Views 2 Watching
  • 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.
  • B Offline
    B Offline
    Boris E.
    wrote on last edited by
    #1

    I'm building a static version of Qt 6.5.0 for Mac.
    According to documentation I added to configure flag
    -DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64"

    But I'm trying to build a project for universal architecture with qmake flag
    QMAKE_APPLE_DEVICE_ARCHS="x86_64 arm64"
    I get unresolved symbols with error :

    /Qt/6.5.0-mac-static/lib/libQt6Widgets.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

    What can be a problem ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi and welcome to devnet,

      Is this a typo here ? You have x86_64h in your configure options.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Is this a typo here ? You have x86_64h in your configure options.

        P Offline
        P Offline
        PaulK
        wrote on last edited by
        #3

        @SGaist
        But the documentation says

        ./configure -- -DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64"

        Be careful to specify the Intel architecture ("x86_64h") first, otherwise Qt may not enable all the x86 functionality.

        source: https://doc.qt.io/qt-6/macos-building.html

        SGaistS 1 Reply Last reply
        0
        • P PaulK

          @SGaist
          But the documentation says

          ./configure -- -DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64"

          Be careful to specify the Intel architecture ("x86_64h") first, otherwise Qt may not enable all the x86 functionality.

          source: https://doc.qt.io/qt-6/macos-building.html

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @PaulK you're correct, it's something I had misread and I am more used to the generic x86_64 than this specific variant.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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