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 error with architecture x86_64
Forum Updated to NodeBB v4.3 + New Features

Qt error with architecture x86_64

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 1.8k 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.
  • S Offline
    S Offline
    strider
    wrote on last edited by
    #1

    I have a mac mountain lion and every time i write me code and i know that it's correct i get 2 issues "Symbol(s) not found for architecture x86_64" and "collect2: Id returned 1 exit status" and the compiler says this
    @10:59:11: Running steps for project Assignment...
    10:59:11: Configuration unchanged, skipping qmake step.
    10:59:11: Starting: "/usr/bin/make" -w
    make: Entering directory /Users/rasmusjansson/Documents/Projects QT/Assignment-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Debug' g++ -headerpad_max_install_names -mmacosx-version-min=10.6 -o Assignment.app/Contents/MacOS/Assignment main.o mainwindow.o moc_mainwindow.o -F/Users/rasmusjansson/Qt5.0.0/5.0.0/clang_64/lib -framework QtWidgets -F/Users/rasmusjansson/Qt5.0.0/5.0.0/clang_64/qtbase/lib -framework QtGui -framework QtCore -framework OpenGL -framework AGL Undefined symbols for architecture x86_64: "MainWindow::on_pushButton_clicked()", referenced from: MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)in moc_mainwindow.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [Assignment.app/Contents/MacOS/Assignment] Error 1 make: Leaving directory /Users/rasmusjansson/Documents/Projects QT/Assignment-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Debug'
    10:59:11: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project Assignment (kit: Desktop Qt 5.0.0 clang 64bit (SDK))
    When executing step 'Make'@

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

      Are you sure that method is defined? Try:

      doing a full rebuild (clean, qmake, make)

      if above fails, switch to macx-llvm specification (pass -spec macx-llvm to qmake) and rebuild

      (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