I am trying to run a simple OpenCV program in QT Creator 2.3, QT 4.7.4. I know the syntax is correct, but my program does not get run. When I run it, I simply get the qtcreator_process_stub.exe window with "Press <RETURN> to close this window...".

Why is this? My .pro file looks as such:

Qt Code:
  1. QT += core
  2. QT -= gui
  3.  
  4. TARGET = myQtConsoleProject
  5. CONFIG += console
  6. CONFIG -= app_bundle
  7.  
  8. TEMPLATE = app
  9. SOURCES += main.cpp
  10.  
  11. INCLUDEPATH += C:\\opencv\\release\\include
  12.  
  13. LIBS += -LC:\\opencv\\release\\lib \
  14. -lopencv_core231.dll \
  15. -lopencv_highgui231.dll \
  16. -lopencv_imgproc231.dll \
  17. -lopencv_features2d231.dll \
  18. -lopencv_calib3d231.dll
To copy to clipboard, switch view to plain text mode 

The application output is

Qt Code:
  1. Starting C:\Users\chris\QT\myQtConsoleProject-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release\release\myQtConsoleProject.exe...
  2. C:\Users\chris\QT\myQtConsoleProject-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Release
To copy to clipboard, switch view to plain text mode 

\release\myQtConsoleProject.exe exited with code 0

The contents of my source code is as follows:
Qt Code:
  1. #include <stdio.h>
  2. #include <opencv2/core/core.hpp>
  3. #include <opencv2/highgui/highgui.hpp>
  4. int main() {
  5. printf("not outputting...\n");
  6. cv::Mat image= cv::imread("C:/temp/img.jpg");
  7. cv::namedWindow("My Image");
  8. cv::imshow("My Image", image);
  9. cv::waitKey(50000);
  10. return 1;
  11. }
To copy to clipboard, switch view to plain text mode 

On my path, I have included "C:\opencv\release\bin"