Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

symbol(s) not found for architecture x86_64



  • Hi,
    after clean reinstallation of Mac Os X 10.14 Mojave, Qt and MySql
    i've loaded a backup of my applcation and..
    i have this error..
    :-1: error: symbol(s) not found for architecture x86_64
    right click -> Show output

    i can read this:

    13:14:25: Running steps for project EasyGest...
    13:14:25: Configuration unchanged, skipping qmake step.
    13:14:25: Starting: "/usr/bin/make" -j4
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/matteomissora/Qt/5.12.3/clang_64/lib -o EasyGest.app/Contents/MacOS/EasyGest main.o mainwindow.o statoordini.o regtemciclo.o inseriscicliente.o inseriscifornitore.o elimina.o inseriscimacchina.o inseriscioperatore.o inserisciarticolo.o modificaoperatore.o modificamacchina.o modificacliente.o modificafornitore.o importaordini.o ingressomateriali.o inserimentoordini.o modificaarticolo.o visualizzaanagrafica.o visualizzapzscorta.o distintabase.o visualizzamagazzino.o qrc_resource.o moc_mainwindow.o moc_statoordini.o moc_regtemciclo.o moc_inseriscicliente.o moc_inseriscifornitore.o moc_elimina.o moc_inseriscimacchina.o moc_inseriscioperatore.o moc_inserisciarticolo.o moc_modificaoperatore.o moc_modificamacchina.o moc_modificacliente.o moc_modificafornitore.o moc_importaordini.o moc_ingressomateriali.o moc_inserimentoordini.o moc_modificaarticolo.o moc_visualizzaanagrafica.o moc_visualizzapzscorta.o moc_distintabase.o moc_visualizzamagazzino.o -F/Users/matteomissora/Qt/5.12.3/clang_64/lib -framework QtWidgets -framework QtGui -framework QtSql -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
    Undefined symbols for architecture x86_64:
    "ordforauto::ordforauto(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionGenera_triggered() in mainwindow.o
    "ordforauto::~ordforauto()", referenced from:
    MainWindow::on_actionGenera_triggered() in mainwindow.o
    "stampaciclo::stampaciclo(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionStampa_Ciclo_di_Lavoro_triggered() in mainwindow.o
    "stampaciclo::~stampaciclo()", referenced from:
    MainWindow::on_actionStampa_Ciclo_di_Lavoro_triggered() in mainwindow.o
    "insordinifor::insordinifor(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionInserimento_Manuale_FOR_triggered() in mainwindow.o
    "insordinifor::~insordinifor()", referenced from:
    MainWindow::on_actionInserimento_Manuale_FOR_triggered() in mainwindow.o
    "ordfornitori::ordfornitori(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionVisualizza_Stato_FOR_triggered() in mainwindow.o
    "uscitamateriali::uscitamateriali(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionUscita_Materiali_triggered() in mainwindow.o
    "uscitamateriali::~uscitamateriali()", referenced from:
    MainWindow::on_actionUscita_Materiali_triggered() in mainwindow.o
    "visualizzamanut::visualizzamanut(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionVisualizza_Manutenzioni_triggered() in mainwindow.o
    "visualizzamovmag::visualizzamovmag(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionVisualizza_Movimenti_Magazzino_triggered() in mainwindow.o
    "visualizzarapcli::visualizzarapcli(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionVisualizza_Rapporti_da_Clienti_triggered() in mainwindow.o
    "visualizzarapfor::visualizzarapfor(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionVisualizza_Rapporti_a_Fornitori_triggered() in mainwindow.o
    "visualizzatmpprod::visualizzatmpprod(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionVisualizza_Tempi_Produzione_triggered() in mainwindow.o
    "visualizzamovpzsco::visualizzamovpzsco(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionVisualizza_Movimenti_Pezzi_Scorta_triggered() in mainwindow.o
    "pianificaproduzione::pianificaproduzione(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionPianificazione_triggered() in mainwindow.o
    "pianificaproduzione::~pianificaproduzione()", referenced from:
    MainWindow::on_actionPianificazione_triggered() in mainwindow.o
    "rccfor::rccfor(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionRCC_For_triggered() in mainwindow.o
    "rccfor::~rccfor()", referenced from:
    MainWindow::on_actionRCC_For_triggered() in mainwindow.o
    "rnccli::rnccli(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionRNC_Cli_triggered() in mainwindow.o
    "rnccli::~rnccli()", referenced from:
    MainWindow::on_actionRNC_Cli_triggered() in mainwindow.o
    "rncfor::rncfor(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionRNC_For_triggered() in mainwindow.o
    "rncfor::~rncfor()", referenced from:
    MainWindow::on_actionRNC_For_triggered() in mainwindow.o
    "rncint::rncint(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionRNC_Int_triggered() in mainwindow.o
    "rncint::~rncint()", referenced from:
    MainWindow::on_actionRNC_Int_triggered() in mainwindow.o
    "manumacc::manumacc(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionManutMacc_triggered() in mainwindow.o
    "manumacc::~manumacc()", referenced from:
    MainWindow::on_actionManutMacc_triggered() in mainwindow.o
    "manutatt::manutatt(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionManutAtt_triggered() in mainwindow.o
    "manutatt::~manutatt()", referenced from:
    MainWindow::on_actionManutAtt_triggered() in mainwindow.o
    "Fatturato::Fatturato(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionFatturato_triggered() in mainwindow.o
    "Fatturato::~Fatturato()", referenced from:
    MainWindow::on_actionFatturato_triggered() in mainwindow.o
    "segnalcli::segnalcli(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionSegnala_Cli_triggered() in mainwindow.o
    "segnalcli::~segnalcli()", referenced from:
    MainWindow::on_actionSegnala_Cli_triggered() in mainwindow.o
    "segnalfor::segnalfor(QWidget*, QString const&, QString const&)", referenced from:
    MainWindow::on_actionSegnala_For_triggered() in mainwindow.o
    "segnalfor::~segnalfor()", referenced from:
    MainWindow::on_actionSegnala_For_triggered() 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: *** [EasyGest.app/Contents/MacOS/EasyGest] Error 1
    13:14:28: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project EasyGest (kit: Desktop Qt 5.12.3 clang 64bit)
    The kit Desktop Qt 5.12.3 clang 64bit has configuration issues which might be the root cause for this problem.
    When executing step "Make"
    13:14:28: Elapsed time: 00:03.

    Anyone can help me to find the problem??

    Thanks in advance.


  • Qt Champions 2018

    @TheCipo76 said in symbol(s) not found for architecture x86_64:

    The kit Desktop Qt 5.12.3 clang 64bit has configuration issues which might be the root cause for this problem.

    Please show the screens Kits, Qt versions and Compilers in Tools > Options > Kits.



  • 0_1563881507712_Schermata 2019-07-23 alle 13.30.26.png

    0_1563881702045_Schermata 2019-07-23 alle 13.34.35.png


  • Qt Champions 2018

    @TheCipo76 Nope, that does not help. We need Tools > Options > Kits.


  • Qt Champions 2018

    @TheCipo76 And what about compilers and Qt versions?



  • 1_1563882800770_Schermata 2019-07-23 alle 13.52.34.png
    2_1563882800770_Schermata 2019-07-23 alle 13.52.41.png
    0_1563882863846_Schermata 2019-07-23 alle 13.52.48.png

    i've choose compiler

    0_1563883207455_Schermata 2019-07-23 alle 13.41.54.png

    and it works



  • @aha_1980 Other suggestion to set Qt in order to work properly?

    Thank you


  • Qt Champions 2018

    @TheCipo76 the settings doesnt look obviously wrong. I think the yellow warning sign is because no debugger is configured; but that should be no problem for compiling.

    can you compile a Hello World Qt program?


  • Lifetime Qt Champion

    Hi,

    You should rather use Apple Clang as the compiler.

    By the way, how did you install Qt ?


  • Qt Champions 2018

    You should rather use Apple Clang as the compiler

    @SGaist Good point - I missed that one.



  • @SGaist said in symbol(s) not found for architecture x86_64:

    By the way, how did you install Qt

    I've downloaded it from here:

    https://www.qt.io/download

    and then i've updated from 5.12.0 to 5.12.3 and installed 5.13.0 too

    Yesterday, as you see in the upper posted image, compiler was Apple Clang (x86_64) and project give me the error as i've wrote in the first post..

    Now i've set it, as you suggested, and none error was reported..

    Using 5.12.3 all works great,
    Using 5.13.0, the same project, give me the error
    "Drivers not loaded"

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7

    in the folder ...Qt ▸ 5.13.0 ▸ clang_64 ▸ plugins ▸ sqldrivers
    i can't find libqsqlmysql.dylib
    can you tell me how to fix it (otool / install_name_tool don't works if the file do not exist..)

    0_1563958699365_Schermata 2019-07-24 alle 10.57.46.png


  • Lifetime Qt Champion

    It looks like the installation is incomplete.

    The quick solution would be to build the missing plugin.



  • @sgaist Ok, now all works Thank you all


Log in to reply