symbol(s) not found for architecture x86_64
-
Hi, I met the same problem with this, Re: symbol(s) not found for architecture x86_64
I have made the suggestions in that post but it didn't solve my question. I new a post according to the Qt Forum suggestion.
I'm on macOS Catalina 10.15.6, Qt version: Qt 5.12.0.
My kits:
My sqldrivers folder
-
@CN_Cabbage Please show what symbols are not found.
The libs are probably not for x86_64 but ARM, or they are simply not found (post the content of your pro file). -
@jsulm
Sorry jsulm, I'm very new to Qt, and I don't know how to show what symbols are not found.Below is my .pro file
#------------------------------------------------- # # Project created by QtCreator 2022-07-19T09:17:19 # #------------------------------------------------- QT += core gui sql greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = bili_tedu_stu_score_mgn TEMPLATE = app # The following define makes your compiler emit warnings if you use # any feature of Qt which has been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 CONFIG += c++11 SOURCES += \ main.cpp \ dialog.cpp HEADERS += \ dialog.h FORMS += \ dialog.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target
By the way, when I choose compiler to arm64, an error arises.
-
@CN_Cabbage said in symbol(s) not found for architecture x86_64:
and I don't know how to show what symbols are not found
It is just above what you already posted (in "Issues" panel)...