Compiling error qt 5.2.0 os x mavericks
-
Hi and welcome to devnet,
How did you installed Qt ?
What does your pro file look like ?
-
installed via macports
.pro file:
@
QT += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = TestProj
TEMPLATE = appCONFIG += MAC_CONFIG
MAC_CONFIG {
QMAKE_CXXFLAGS = -mmacosx-version-min=10.9
QMAKE_LFLAGS = -mmacosx-version-min=10.9
}INCLUDEPATH += /Users/eugenekolesnikov/Library/OpencvLib
/usr/local/include
LIBS +=
-L/opt/local/lib
-lopencv_core
-lopencv_imgproc
-lopencv_highgui
-lopencv_objdetect
-lmSOURCES += main.cpp
mainwindow.cppHEADERS += mainwindow.h
FORMS += mainwindow.ui
@[edit: added missing coding tags @ SGaist]
-
Unless you have macports in a strange place, your error says that it's searching in /Users/eugenekolesnikov/Qt5.2.0/5.2.0/clang_64/lib/
So it seems you have something mixed-up . Did you install Qt through the installer once ?
-
How did you "kind of manually" installed it ?
-
Compiling from the console I got more words about the error so now it can be analysed:
Undefined symbols for architecture x86_64:
"NeuralNet::~NeuralNet()", referenced from:
MainWindow::MainWindow(QWidget*) in mainwindow.o
MainWindow::~MainWindow() in mainwindow.o
MainWindow::~MainWindow() in mainwindow.o
non-virtual thunk to MainWindow::~MainWindow() in mainwindow.o
MainWindow::~MainWindow() in mainwindow.o
non-virtual thunk to MainWindow::~MainWindow() 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: *** [TestGuiProj.app/Contents/MacOS/TestGuiProj] Error 1 -
Finally got this error and I don't know what does that mean
Undefined symbols for architecture x86_64:
"NeuralNet::~NeuralNet()", referenced from:
MainWindow::MainWindow(QWidget*) in mainwindow.o
MainWindow::~MainWindow() in mainwindow.o
ld: symbol(s) not found for architecture x86_64 -
What is NeuralNet ?
The error means that it can't find the implementation of the destructor of NerualNet for 64 bit