Saturday, November 26, 2011
Saturday, May 14, 2011
Relief ;-)
Completed my final year project through many difficulties. Thanks a lot for every one who helped me in various ways. :)
After my exams (from next month), I'll surely share the knowledge gained throughout the project, with you all.
Have a nice Day!!!
After my exams (from next month), I'll surely share the knowledge gained throughout the project, with you all.
Have a nice Day!!!
Sunday, January 23, 2011
Undefined reference to CVKnearest...... Issue.
Hi....
People who are using OpenCV may come across this issue. This Quick and Brief post is to help those who are still struggling with this compilation problem.
Issue is "undefined reference to `CvKNearest::CvKNearest(CvMat const*, CvMat const*, CvMat const*, bool, int)' collect2: ld returned 1 exit status"
This URL helps to add MSVC compiler to a Qt project.
http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-qmake.html
People who are using OpenCV may come across this issue. This Quick and Brief post is to help those who are still struggling with this compilation problem.
Issue is "undefined reference to `CvKNearest::CvKNearest(CvMat const*, CvMat const*, CvMat const*, bool, int)' collect2: ld returned 1 exit status"
In my case, I am using OpenCV with Qt.
Things to be checked are,
- header file ml.h should be in your source file.
- ml library path and the ml library should be in your project properties (if you are using Visual Studio) or in .pro file (if using Qt).
You have done above steps and still getting the same issue.. :S What should you check next ??????
This is where I got stuck. I got the exact help from OpenCV community. What he said was
" If you are trying to use with GCC the precompiled binaries of OpenCV for Windows, it won't work for C++ functionality. Have you recompiled OpenCV with GCC? C++ binaries produced by MSVC and GCC and not compatible against each other "
In my case, I had used MinGW for compiling. Now I am using MSVC and problem solved. :)
This URL helps to add MSVC compiler to a Qt project.
http://doc.qt.nokia.com/qtcreator-snapshot/creator-project-qmake.html
Have a nice DAY!!! :)
Saturday, January 1, 2011
Friday, December 24, 2010
Wednesday, December 22, 2010
How to link OpenCV with Qt
Hi... after a long time!!!.
These days, I am learning OpenCV and Qt programming for my undergraduate project. So, I thought to share my knowledge with you all.
I was struggling a lot to link both OpenCV and Qt as a beginner. Finally, I found these posts which are great.
This is how my project's .pro file looks... (OS - Windows 7)
INCLUDEPATH += "C:\OpenCV2.1\include\opencv" \
"C:\OpenCV2.1\src\cv" \
"C:\OpenCV2.1\src\cvaux" \
"C:\OpenCV2.1\src\cxcore" \
"C:\OpenCV2.1\src\highgui" \
"C:\OpenCV2.1\src\ml"
LIBS += -L"C:\OpenCV2.1\lib" \
-lcv210 \
-lcvaux210 \
-lhighgui210 \
-lcxcore210
Here cv210, cvaux210 and so on..... are the names of lib files in your opencv lib folder.
Very simple thing... but as a beginner, I know how I struggled with this.. So, this post is for those who are new to OpenCv with Qt Programming.
Have a nice day!!! :)
Subscribe to:
Posts (Atom)