Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compiling question? a wierd problem
Forum Update on Monday, May 27th 2025

Compiling question? a wierd problem

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    melzk
    wrote on last edited by
    #1

    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 for first'.
    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved