Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Undefined symbols for architecture x86_64:
Forum Updated to NodeBB v4.3 + New Features

Undefined symbols for architecture x86_64:

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 2.2k Views 1 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.
  • V Offline
    V Offline
    Victor.Dai
    wrote on last edited by
    #1

    Hi,
    I have a problem that has not been solved for a long time.

    ld: warning: ignoring file /usr/local/lib/libhiredis.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
    Undefined symbols for architecture x86_64
      "_redisConnect", referenced from:
          _main in main.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [../_debug64/Battle.app/Contents/MacOS/Battle] Error 1
    

    4d10a9e5-e467-4e99-8afa-b2ccb1f3b34e-image.png
    f8965780-196a-492f-901b-043b1c0bfa38-image.png

    Thank. you

    JKSHJ 1 Reply Last reply
    0
    • V Victor.Dai

      Hi,
      I have a problem that has not been solved for a long time.

      ld: warning: ignoring file /usr/local/lib/libhiredis.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
      Undefined symbols for architecture x86_64
        "_redisConnect", referenced from:
            _main in main.o
      ld: symbol(s) not found for architecture x86_64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      make: *** [../_debug64/Battle.app/Contents/MacOS/Battle] Error 1
      

      4d10a9e5-e467-4e99-8afa-b2ccb1f3b34e-image.png
      f8965780-196a-492f-901b-043b1c0bfa38-image.png

      Thank. you

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome!

      @Victor-Dai said in Undefined symbols for architecture x86_64::

      /usr/local/lib/libhiredis.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

      You are using an x86_64 compiler but you are trying to link to an ARM64 library. That is not allowed.

      Some possible solutions are:

      • Install an x86_64 version of libhiredis, OR
      • Wait for Qt 6.2 to be released, and then build your application with an ARM64 compiler: https://bugreports.qt.io/browse/QTBUG-85279

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1

      • Login

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