Compiling question? a wierd problem



  • hello

    i have installed the latest QT SDK and i havve compiled Opencv libs.
    so i test to download, a "hello world" code for the opencv libs.

    the problem is that when i start build and debug i get this

    when I run:

    aplication output:

    @Starting C:\c++\Qt_Opencv_test\release\Qt_Opencv_test.exe...
    The program has unexpectedly finished.
    C:\c++\Qt_Opencv_test\release\Qt_Opencv_test.exe exited with code -1073741511
    @

    compiler output:

    @
    19:04:06: Running build steps for project Qt_Opencv_test...
    19:04:06: Configuration unchanged, skipping qmake step.
    19:04:06: Starting: "C:\Qt\mingw\bin\mingw32-make.exe"
    C:/Qt/mingw/bin/mingw32-make.exe -f Makefile.Release
    mingw32-make.exe[1]: Entering directory C:/c++/Qt_Opencv_test' mingw32-make.exe[1]: Nothing to be done forfirst'.
    mingw32-make.exe[1]: Leaving directory `C:/c++/Qt_Opencv_test'
    19:04:06: The process "C:\Qt\mingw\bin\mingw32-make.exe" exited normally.
    @

    when I use debugg:

    I got to dialogboxes that say

    1. Warning. This does not seem to be a "Debug" build. Setting breakpoint by file name and line number may fail.
      What this it really mean?

    2. Executable Failed. During startup program exited witch code 0xc0000139.
      i have googled for this and it seems that is some kinde of dll that is missing, when i go to te exutable foler i find the exe and it says that the q4core.dll is missing. how do i fix that?

    My .pro file:
    @
    #-------------------------------------------------

    Project created by QtCreator 2012-10-24T18:09:20

    #-------------------------------------------------

    QT += core gui

    TARGET = Qt_Opencv_test
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp

    INCLUDEPATH += "C:\OpenCV2.4MinGw\install\include"
    LIBS += "C:\OpenCV2.4MinGw\bin*.dll"

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    @

    My Main File:

    @
    #include "iostream"
    #include <opencv2/core/core.hpp>
    #include <opencv2/highgui/highgui.hpp>

    using namespace cv;
    using namespace std;

    int main()
    {
    IplImage *image = cvLoadImage("C:\fetto.jpg");
    Mat im(image);
    imshow("TEST",im);
    waitKey();
    return 0;
    }
    @

    The strangest thing is that i dont get any compiling errors

    Edit:

    I have tested out some regular qt apps and the work just fine. so i cant figure out what is the problem here.
    i have linked my my libs to the system variabels in PATH so. i feel that this is really freaking me out.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.