Results 1 to 7 of 7

Thread: Can't debug the program with OpenCV in Qt Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Can't debug the program with OpenCV in Qt Creator

    What do you mean you can't debug? The message you are complaining about is a run time message indicating that a parameter you have passed is in some way unacceptable. Run the program in your debugger and when it throws it exception look at the stack back trace to find where in your code the call is coming from.

  2. #2
    Join Date
    Apr 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: Can't debug the program with OpenCV in Qt Creator

    For example,I want load and show an image with code

    Qt Code:
    1. #include <QtCore/QCoreApplication>
    2. #include<opencv.hpp>
    3. using namespace cv;
    4.  
    5. int main(int argc, char *argv[])
    6. {
    7. QCoreApplication a(argc, argv);
    8. Mat image=imread("E:\\library\\Pictures\\images\\Lena.jpg");
    9. imshow("image",image);
    10.  
    11. return a.exec();
    12. }
    To copy to clipboard, switch view to plain text mode 

    If I choose msvc2010 release compiler in Qt Creator,the image will show correctly.But if I choose msvc2010 debug compiler,no image will show.

  3. #3
    Join Date
    Jun 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't debug the program with OpenCV in Qt Creator

    hi nimingzhe2008
    can u plz attach me those files

Similar Threads

  1. OpenCV integration with Qt creator
    By mind_freak in forum Qt Programming
    Replies: 11
    Last Post: 8th January 2013, 23:50
  2. Qt Creator and OpenCV , .dll missing
    By schludy in forum Newbie
    Replies: 0
    Last Post: 30th November 2011, 11:11
  3. Replies: 1
    Last Post: 12th September 2011, 12:34
  4. Problem with openCV compilation in Qt Creator
    By mind_freak in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2011, 13:26
  5. Using OpenCV with QT creator
    By gmiller39 in forum Newbie
    Replies: 3
    Last Post: 7th July 2010, 16:32

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.