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 General and Desktop
2 Posts 2 Posters 1.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.
  • D Offline
    D Offline
    ddman119
    wrote on last edited by
    #1

    Having a problem linking with hid api library, any help?
    @
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.6 -o Test.app/Contents/MacOS/Test main.o mainwindow.o moc_mainwindow.o -F/Users/ericspata/Qt/5.3/clang_64/lib -framework CoreFoundation -framework IOKit -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL
    Undefined symbols for architecture x86_64:
    "_hid_enumerate", referenced from:
    MainWindow::on_pushButton_clicked() in mainwindow.o
    "_hid_free_enumeration", referenced from:
    MainWindow::on_pushButton_clicked() in mainwindow.o
    "_hid_open_path", referenced from:
    MainWindow::on_pushButton_clicked() in mainwindow.o
    "_hid_read_timeout", referenced from:
    MainWindow::on_pushButton_clicked() in mainwindow.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: *** [Test.app/Contents/MacOS/Test] Error 1
    22:04:13: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project Test (kit: Desktop Qt 5.3 clang 64bit)
    When executing step "Make"
    @

    This is what my .pro file looks:
    @
    #-------------------------------------------------

    Project created by QtCreator 2014-09-02T14:38:42

    #-------------------------------------------------

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = Test
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp

    HEADERS += mainwindow.h
    hidapi.h

    FORMS += mainwindow.ui
    @

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Hi, please use code tags (@) when posting code on this forum.

      Most probably, your library was compiled in 32 bit, but you are trying to link it to your 64 bit application. Best would be to recompile the HID library in 64 bit.

      (Z(:^

      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