PDA

View Full Version : opencv-qt-mac



ireneluis
16th March 2010, 15:24
Dear colleague:
I am writing to you to explain with details my problems:



I am working with Qt Creator 1.0.0 based on QT 4.5.0 and I am installed opencv-framework.1.1.dmg. In order to know if QT was able to integrate opencv I added the line
#include "cv.h" to my hello world qt example



#include <QApplication>
#include <QPushButton>


#include "cv.h"

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QPushButton hello("Hello world!");
hello.resize(100, 30);

hello.show();
return app.exec();
}


After I ran the example I received the message:

/Users/teresaalarcon/Tere/Pract_OPENCV/ej1/main.cpp:13: error: cv.h: No such file or directory

I tried to modify my project including the path for opencv, but did not work:

I am working in Mac OS X, v. 10.5.8. the compilers are: gcc 4.0.1

I need your help, if this is possible.
ireneluis[/QUOTE][/QUOTE]