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. symbol(s) not found for architecture x86_64
QtWS25 Last Chance

symbol(s) not found for architecture x86_64

Scheduled Pinned Locked Moved Solved General and Desktop
13 Posts 3 Posters 3.2k Views
  • 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.
  • T TheCipo76
    23 Jul 2019, 11:24

    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.

    A Offline
    A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on 23 Jul 2019, 11:26 last edited by aha_1980
    #2

    @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.

    Qt has to stay free or it will die.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TheCipo76
      wrote on 23 Jul 2019, 11:31 last edited by TheCipo76
      #3

      0_1563881507712_Schermata 2019-07-23 alle 13.30.26.png

      0_1563881702045_Schermata 2019-07-23 alle 13.34.35.png

      A 2 Replies Last reply 23 Jul 2019, 11:34
      0
      • T TheCipo76
        23 Jul 2019, 11:31

        0_1563881507712_Schermata 2019-07-23 alle 13.30.26.png

        0_1563881702045_Schermata 2019-07-23 alle 13.34.35.png

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 23 Jul 2019, 11:34 last edited by
        #4

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

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • T TheCipo76
          23 Jul 2019, 11:31

          0_1563881507712_Schermata 2019-07-23 alle 13.30.26.png

          0_1563881702045_Schermata 2019-07-23 alle 13.34.35.png

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 23 Jul 2019, 11:38 last edited by
          #5

          @TheCipo76 And what about compilers and Qt versions?

          Qt has to stay free or it will die.

          T 1 Reply Last reply 23 Jul 2019, 15:29
          1
          • T Offline
            T Offline
            TheCipo76
            wrote on 23 Jul 2019, 11:42 last edited by TheCipo76
            #6

            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

            1 Reply Last reply
            0
            • A aha_1980
              23 Jul 2019, 11:38

              @TheCipo76 And what about compilers and Qt versions?

              T Offline
              T Offline
              TheCipo76
              wrote on 23 Jul 2019, 15:29 last edited by TheCipo76
              #7

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

              Thank you

              A 1 Reply Last reply 23 Jul 2019, 16:59
              0
              • T TheCipo76
                23 Jul 2019, 15:29

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

                Thank you

                A Offline
                A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 23 Jul 2019, 16:59 last edited by aha_1980
                #8

                @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?

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 23 Jul 2019, 19:12 last edited by SGaist
                  #9

                  Hi,

                  You should rather use Apple Clang as the compiler.

                  By the way, how did you install Qt ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A T 2 Replies Last reply 23 Jul 2019, 19:30
                  2
                  • SGaistS SGaist
                    23 Jul 2019, 19:12

                    Hi,

                    You should rather use Apple Clang as the compiler.

                    By the way, how did you install Qt ?

                    A Offline
                    A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 23 Jul 2019, 19:30 last edited by
                    #10

                    You should rather use Apple Clang as the compiler

                    @SGaist Good point - I missed that one.

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    0
                    • SGaistS SGaist
                      23 Jul 2019, 19:12

                      Hi,

                      You should rather use Apple Clang as the compiler.

                      By the way, how did you install Qt ?

                      T Offline
                      T Offline
                      TheCipo76
                      wrote on 24 Jul 2019, 07:42 last edited by TheCipo76
                      #11

                      @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

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 25 Jul 2019, 20:29 last edited by
                        #12

                        It looks like the installation is incomplete.

                        The quick solution would be to build the missing plugin.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        T 1 Reply Last reply 14 Aug 2019, 10:48
                        4
                        • SGaistS SGaist
                          25 Jul 2019, 20:29

                          It looks like the installation is incomplete.

                          The quick solution would be to build the missing plugin.

                          T Offline
                          T Offline
                          TheCipo76
                          wrote on 14 Aug 2019, 10:48 last edited by
                          #13

                          @sgaist Ok, now all works Thank you all

                          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