Showing posts with label qt. Show all posts
Showing posts with label qt. Show all posts

5/06/2015

QT + OpenCV error : C1083 opencv2/opencv.hpp no such file or directory

In Qt, setting of "include and lib path" is configured in the .pro file.

For example :

INCLUDEPATH += C:\opencv300rc1\opencv\build\include
LIBS += C:\opencv300rc1\MyBuild\lib\Debug

But in my case, I can not find the reason of error "C1083 opencv.hpp no such file or directory..."

I tried various attempts, but I don't know why error occur.
But I found the way of to avoid the error.
That is using build setting tab (ctrl + 5).
In build environment, add opencv path INCLUDE and LIB.



I solved the problem in this way.
Please note.











5/04/2015

build opencv 3.0 + cuda 6.5 + QT 5.4 + tbb

These are cmake configuration for OpenCV rc1 + CUDA 6.5 + QT 5.4 + TBB 4.3








I thought it will help opencv building beginner.
I will help how to set path and what I should check.

And configuration result is here.



Now I am building on VS 2012... I hope to build with no error.. ^^

Refer to this page, these are my result of building opencv in waste of time.




4/30/2015

QT printf

qDebug ("message %d, says: %s",num,str);
qDebug() << "Debug Message";
qDebug messages are removed if "QT_NO_DEBUG_OUTPUT" is defined, so it will be useful than printf.

And refer to other message out methods.

qWarning() << "Warning Message";
qCritical() << "Critical Error Message";
qFatal() << "Fatal Error Message";

Have a good day!





#include < stdio.h>
#include < QDebug>

int main()
{
    printf("stdio.h\n");
    qDebug() << "QDebug.h";
}