Hello
This is my first post, first of all say that I have read many post on this forum and others but have not found the solution to my problem:
http://labs.trolltech.com/forums/topic/1884
http://www.qtcentre.org/threads/3217...ith-QT-creator
...
My problem is that when compiling QtCreator I get the following error:
Running steps for project build Qt ...
Configuration Unchanged, skipping qmake step.
Starting "/ usr / bin / make-w
make: Entering directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
/ Usr / bin / qmake-spec / macx usr/local/Qt4.6/mkspecs/macx-g + +-Makefile-o .. / Qt / Qt.pro
make: Leaving directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
make: Entering directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
g + +-headerpad_max_install_names-arch i386-o Qt.app / Contents / MacOS / Qt main.o mainwindow.o moc_mainwindow.o -F/Library/Frameworks -L/Library/Frameworks -L/opt/local/bin /-cxcore210 - cvaux210-cv210-highgui210-framework QtCore-framework QtGui
Undefined symbols:
"Cv:: fastFree (void *)", referenced from:
cv:: Mat:: release () in main.o
ld: symbol (s) not found
collect2: ld returned 1 exit status
make: *** [Qt.app / Contents / MacOS / Qt] Error 1
make: Leaving directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
The process "/ usr / bin / make" exited with code% 2.
Error while building Qt project (target: Desktop)
When executing build step 'Make'
Running steps for project build Qt ...
Configuration Unchanged, skipping qmake step.
Starting "/ usr / bin / make-w
make: Entering directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
/ Usr / bin / qmake-spec / macx usr/local/Qt4.6/mkspecs/macx-g + +-Makefile-o .. / Qt / Qt.pro
make: Leaving directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
make: Entering directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
g + +-headerpad_max_install_names-arch i386-o Qt.app / Contents / MacOS / Qt main.o mainwindow.o moc_mainwindow.o -F/Library/Frameworks -L/Library/Frameworks -L/opt/local/bin /-cxcore210 - cvaux210-cv210-highgui210-framework QtCore-framework QtGui
Undefined symbols:
"Cv:: fastFree (void *)", referenced from:
cv:: Mat:: release () in main.o
ld: symbol (s) not found
collect2: ld returned 1 exit status
make: *** [Qt.app / Contents / MacOS / Qt] Error 1
make: Leaving directory `/ Users / Laura / Desktop / VC / Qt-build-desktop '
The process "/ usr / bin / make" exited with code% 2.
Error while building Qt project (target: Desktop)
When executing build step 'Make'
To copy to clipboard, switch view to plain text mode
My OS is: Mac OS X 10.6.4
In .pro QtCreator towards I added the following lines:
INCLUDEPATH + = "/ usr / local / include / opencv"
LIBS + =-L '/ opt / Local / bin / "-cxcore210-cvaux210-cv210-highgui210
INCLUDEPATH + = "/ usr / local / include / opencv"
LIBS + =-L '/ opt / Local / bin / "-cxcore210-cvaux210-cv210-highgui210
To copy to clipboard, switch view to plain text mode
My PATH is:
echo $ PATH
/ Usr / local / include / opencv: / opt / local / bin: / opt / local / sbin: / usr / bin: / bin: / usr / sbin: / sbin: / usr / local / bin: / usr / texbin : / usr/X11/bin
echo $ PATH
/ Usr / local / include / opencv: / opt / local / bin: / opt / local / sbin: / usr / bin: / bin: / usr / sbin: / sbin: / usr / local / bin: / usr / texbin : / usr/X11/bin
To copy to clipboard, switch view to plain text mode
The program is an example, with an added line:
# Include <QtGui/QApplication>
# Include "mainwindow.h"
# Include "cv.h"
# Include "cxcore.h"
# Include "highgui.h"
using namespace cv;
int main (int argc, char * argv [])
(
MainWindow w;
w.show ();
Mat matrix/ / line that fails
return a.exec ();
)
# Include <QtGui/QApplication>
# Include "mainwindow.h"
# Include "cv.h"
# Include "cxcore.h"
# Include "highgui.h"
using namespace cv;
int main (int argc, char * argv [])
(
QApplication a (argc, argv);
MainWindow w;
w.show ();
Mat matrix/ / line that fails
return a.exec ();
)
To copy to clipboard, switch view to plain text mode
Any idea how to fix the error?
Bookmarks