Qt error with architecture x86_64

  • 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'@

  • Moderators

    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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.