No, I am not sure, I tested 10 000 things, but if I put
LIBS += -lcv
LIBS += -lcv
To copy to clipboard, switch view to plain text mode
I get the following error:
Running build steps for project Qt...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
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 -lcv -framework QtGui -framework QtCore
ld: warning: in /usr/lib/libcv.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
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 project Qt (target: Desktop)
When executing build step 'Make'
Running build steps for project Qt...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
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 -lcv -framework QtGui -framework QtCore
ld: warning: in /usr/lib/libcv.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
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 project Qt (target: Desktop)
When executing build step 'Make'
To copy to clipboard, switch view to plain text mode
and -lcv210 not find it (I have installed opencv2.1)
Bookmarks