now i feel me dump, but i have to say i was to tierd last night now today i saw the mingw option in the updater i dident saw it yester day 
Added after 1 51 minutes:
now all is working, but i still have one problem. and i dont really know what that is for kind of problem.
Now when i can use the open cv headers and libaries, I tried to test a hello world app,
and when i paste the code i dont get anything, it just says like this.
Starting C:\c++\Opencv_test_mingw\release\Opencv_test_mingw .exe...
The program has unexpectedly finished.
C:\c++\Opencv_test_mingw\release\Opencv_test_mingw .exe exited with code -1073741511
here is the compiler output:
13:30:00: Running build steps for project Opencv_test_mingw...
13:30:00: Configuration unchanged, skipping qmake step.
13:30:00: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `C:/c++/Opencv_test_mingw'
mingw32-make.exe[1]: Nothing to be done for `first'.
mingw32-make.exe[1]: Leaving directory `C:/c++/Opencv_test_mingw'
13:30:00: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited normally.
13:30:00: Running build steps for project Opencv_test_mingw...
13:30:00: Configuration unchanged, skipping qmake step.
13:30:00: Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
C:/QtSDK/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `C:/c++/Opencv_test_mingw'
mingw32-make.exe[1]: Nothing to be done for `first'.
mingw32-make.exe[1]: Leaving directory `C:/c++/Opencv_test_mingw'
13:30:00: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited normally.
To copy to clipboard, switch view to plain text mode
my .pro file:
#-------------------------------------------------
#
# Project created by QtCreator 2012-10-24T13:25:06
#
#-------------------------------------------------
QT += core gui
TARGET = Opencv_test_mingw
TEMPLATE = app
SOURCES += main.cpp\
INCLUDEPATH += "C:/OpenCV2.4MinGw/install/include"
LIBS += "C:/OpenCV2.4MinGw/bin/*.dll"
HEADERS +=
FORMS += mainwindow.ui
#-------------------------------------------------
#
# Project created by QtCreator 2012-10-24T13:25:06
#
#-------------------------------------------------
QT += core gui
TARGET = Opencv_test_mingw
TEMPLATE = app
SOURCES += main.cpp\
INCLUDEPATH += "C:/OpenCV2.4MinGw/install/include"
LIBS += "C:/OpenCV2.4MinGw/bin/*.dll"
HEADERS +=
FORMS += mainwindow.ui
To copy to clipboard, switch view to plain text mode
My main file:
#include <opencv/cv.h>
#include <opencv/highgui.h>
int main ( int argc, char **argv )
{
cvNamedWindow( "My Window", 1 );
IplImage *img = cvCreateImage( cvSize( 640, 480 ), IPL_DEPTH_8U, 1 );
CvFont font;
double hScale = 1.0;
double vScale = 1.0;
int lineWidth = 1;
cvInitFont( &font, CV_FONT_HERSHEY_SIMPLEX | CV_FONT_ITALIC,
hScale, vScale, 0, lineWidth );
cvPutText( img, "Hello World!", cvPoint( 200, 400 ), &font,
cvScalar( 255, 255, 0 ) );
cvShowImage( "My Window", img );
cvWaitKey();
return 0;
}
#include <opencv/cv.h>
#include <opencv/highgui.h>
int main ( int argc, char **argv )
{
cvNamedWindow( "My Window", 1 );
IplImage *img = cvCreateImage( cvSize( 640, 480 ), IPL_DEPTH_8U, 1 );
CvFont font;
double hScale = 1.0;
double vScale = 1.0;
int lineWidth = 1;
cvInitFont( &font, CV_FONT_HERSHEY_SIMPLEX | CV_FONT_ITALIC,
hScale, vScale, 0, lineWidth );
cvPutText( img, "Hello World!", cvPoint( 200, 400 ), &font,
cvScalar( 255, 255, 0 ) );
cvShowImage( "My Window", img );
cvWaitKey();
return 0;
}
To copy to clipboard, switch view to plain text mode
it sould make a window, but it isent doing that, what is the error?
when i debug and build i got this message (look on attachmented image)
have tryed a few other apps from the "http://qt-apps.org/"
with the same error.
Bookmarks