I am working on an opencv, Qt application on my Mac, however compiling gives me an error, for example
Undefined symbols for architecture x86_64
I based the solution here, Qt5.1 / Qt5.2 + Mac OS 10.9 (Mavericks) + Xcode 5.0.2, Undefined characters for x86_64 architecture
what i changed / usr / local / Cellar / qt 5 / 5.3.2 / mkspecs / macx-clang / qmake.conf
from
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
to
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
after cleaning the project, it doesnβt work, I wonder what other change?
///// update ////
I previously found that my default set used g ++ as a compiler, and now I changed it to clang as the default compiler, you can see my configuration here
https://www.dropbox.com/s/93viwvf1a70s347/Screenshot%202015 -02-13% 2002.43.23.png? Dl = 0
, Undefined x86_64 , : : 1 ( -v, )
??
///update////
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webkitwidgets
TARGET = particle_filter
TEMPLATE = app
QT += network
SOURCES += main.cpp\
HEADERS += \
FORMS += \
parkingapp.ui \
INCLUDEPATH += /usr/local/Cellar/opencv/2.4.9/include
LIBS += -L/usr/local/Cellar/opencv/2.4.9/lib \
-lopencv_core \
-lopencv_highgui \
-lopencv_imgproc \
-lopencv_video \
-lopencv_objdetect \
-lopencv_ml \
-lopencv_features2d
http://qt-project.org/forums/viewthread/24551/P15, .pro
LIBS += -stdlib=libc++
QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_CXXFLAGS += -std=c++11
QMAKE_CXXFLAGS += -mmacosx-version-min=10.9
QMAKE_LFLAGS += -mmacosx-version-min=10.9
....: (