Hello, I would like to compile a simple OpenCV application in Qt.

I already looked at Qt-OpenCV-simple-example topic but its too complicated for me at the moment. I followed a great tutorial on YouTube.
Unfortunately I can't get it working, that's why I'm asking for help.

Miscellaneous information :
Ubuntu 13.04 (64 bits)

Qt Creator 2.7.0
Qt framework 5.0.1 (64 bits)

OpenCV 2.4.4
Qt Code:
  1. rc libopencv-calib3d2.3 2.3.1-11ubuntu2 amd64 computer vision Camera Calibration library
  2. ii libopencv-calib3d2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision Camera Calibration library
  3. rc libopencv-contrib2.3 2.3.1-11ubuntu2 amd64 computer vision contrib library
  4. rc libopencv-core2.3 2.3.1-11ubuntu2 amd64 computer vision core library
  5. ii libopencv-core2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision core library
  6. rc libopencv-features2d2.3 2.3.1-11ubuntu2 amd64 computer vision Feature Detection and Descriptor Extraction library
  7. ii libopencv-features2d2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision Feature Detection and Descriptor Extraction library
  8. rc libopencv-flann2.3 2.3.1-11ubuntu2 amd64 computer vision Clustering and Search in Multi-Dimensional spaces library
  9. ii libopencv-flann2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision Clustering and Search in Multi-Dimensional spaces library
  10. rc libopencv-gpu2.3 2.3.1-11ubuntu2 amd64 computer vision GPU Processing library
  11. rc libopencv-highgui2.3 2.3.1-11ubuntu2 amd64 computer vision High-level GUI and Media I/O library
  12. ii libopencv-highgui2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision High-level GUI and Media I/O library
  13. rc libopencv-imgproc2.3 2.3.1-11ubuntu2 amd64 computer vision Image Processing library
  14. ii libopencv-imgproc2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision Image Processing library
  15. rc libopencv-legacy2.3 2.3.1-11ubuntu2 amd64 computer vision legacy library
  16. ii libopencv-legacy2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision legacy library
  17. rc libopencv-ml2.3 2.3.1-11ubuntu2 amd64 computer vision Machine Learning library
  18. ii libopencv-ml2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision Machine Learning library
  19. rc libopencv-objdetect2.3 2.3.1-11ubuntu2 amd64 computer vision Object Detection library
  20. ii libopencv-objdetect2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision Object Detection library
  21. rc libopencv-video2.3 2.3.1-11ubuntu2 amd64 computer vision Video analysis library
  22. ii libopencv-video2.4 2.4.2+dfsg-0exp2ubuntu1 amd64 computer vision Video analysis library
To copy to clipboard, switch view to plain text mode 

The Youtube tutorial is for Windows, I modified the .pro file and it looks like this :

Qt Code:
  1. QT += core gui
  2.  
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4.  
  5. TARGET = QtTracker3
  6. TEMPLATE = app
  7.  
  8.  
  9. SOURCES += main.cpp\
  10. dialog.cpp
  11.  
  12. HEADERS += dialog.h
  13.  
  14. FORMS += dialog.ui
  15.  
  16.  
  17. # Show Qt where OpenCV is :
  18. INCLUDEPATH += /usr/local/include/opencv #/usr/local/include/opencv2
  19.  
  20. LIBS += -L/usr/local/lib \
  21. -lopencv_calib3d \
  22. -lopencv_contrib \
  23. -lopencv_core \
  24. -lopencv_features2d \
  25. -lopencv_flann \
  26. -lopencv_gpu \
  27. -lopencv_highgui \
  28. -lopencv_imgproc \
  29. -lopencv_legacy \
  30. -lopencv_ml \
  31. -lopencv_objdetect \
  32. -lopencv_ts \
  33. -lopencv_video
To copy to clipboard, switch view to plain text mode 

The project builds successfuly but the program exits at start.

Qt Code:
  1. Debugging starts
  2. &"warning: GDB: Failed to set controlling terminal: Ioctl() inappropr\303\251 pour un p\303\251riph\303\251rique\n"
  3. no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. 0 ?? /usr/lib/x86_64-linux-gnu/libQtTest.so.4 0x7fffeff97d3c
  2. 1 ?? /lib64/ld-linux-x86-64.so.2 0x7ffff7de9876
  3. 2 ?? /lib64/ld-linux-x86-64.so.2 0x7ffff7de9930
  4. 3 ?? /lib64/ld-linux-x86-64.so.2 0x7ffff7ddb68a
  5. 4 ?? 0x1
  6. 5 ?? 0x7fffffffe920
  7. 6 ??
To copy to clipboard, switch view to plain text mode 

The arrow points this line
Qt Code:
  1. 0x7fffeff97d3c <+0x0000> lock incl (%rbx)
To copy to clipboard, switch view to plain text mode 

The whole project is enclosed in this post (QtTest_Vic.zip). Thanks in advance for your precious help