OpenCV integration with Qt
Version: opencv-3.1.0 Language : C++
Hello everyone,
I have been having a reoccurring problem that is really slowing me down.. I'm new to C++ and really want to learn and get into openCV . I have successfully integrated this with Xcode on my mac but am unable to do this with Qt .. Here what I have done so far (below) I have added this to my project but keep getting an error saying 'libraries/openCV not found'
-------------------------------------------------
#
Project created by QtCreator 2016-05-15T23:16:25
#
-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = cam TEMPLATE = app
// new QT += core QT -= gui
TARGET = RP_openCV_01 CONFIG += console CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp\ mainwindow.cpp
LIBS += -L/opt/local/lib \ -lopencv_highgui.3.1.0 \ -lopencv_core.3.1.0
INCLUDEPATH += /opt/local/include
HEADERS += mainwindow.h
FORMS += mainwindow.ui
Could you please copy and paste the error from the compiler output of qt creator so as to make things more clearer.
22:41:46: Starting: "/usr/bin/make" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -g -std=gnu++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.7 -Wall -W -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../CV -I. -I../../Qt/5.6/clang_64/lib/QtWidgets.framework/Headers -I../../Qt/5.6/clang_64/lib/QtGui.framework/Headers -I../../Qt/5.6/clang_64/lib/QtCore.framework/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framewor
I did have this first installed on Xcode on my mac... and then switched to Qt hence why you see Xcode in the output. Sorry for the long response as well
sorry, but i don't see the error in the above compiler output. You need to copy and paste the error part from the qt creator IDE output pane.