Results 1 to 1 of 1

Thread: opencv-qt-mac

  1. #1
    Join Date
    Mar 2010
    Posts
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default opencv-qt-mac

    Dear colleague:
    I am writing to you to explain with details my problems:



    I am working with Qt Creator 1.0.0 based on QT 4.5.0 and I am installed opencv-framework.1.1.dmg. In order to know if QT was able to integrate opencv I added the line
    Qt Code:
    1. #include "cv.h"
    To copy to clipboard, switch view to plain text mode 
    to my hello world qt example


    Qt Code:
    1. #include <QApplication>
    2. #include <QPushButton>
    3.  
    4.  
    5. #include "cv.h"
    6.  
    7. int main(int argc, char *argv[])
    8. {
    9. QApplication app(argc, argv);
    10.  
    11. QPushButton hello("Hello world!");
    12. hello.resize(100, 30);
    13.  
    14. hello.show();
    15. return app.exec();
    16. }
    To copy to clipboard, switch view to plain text mode 

    After I ran the example I received the message:
    Qt Code:
    1. /Users/teresaalarcon/Tere/Pract_OPENCV/ej1/main.cpp:13: error: cv.h: No such file or directory
    To copy to clipboard, switch view to plain text mode 
    I tried to modify my project including the path for opencv, but did not work:

    I am working in Mac OS X, v. 10.5.8. the compilers are: gcc 4.0.1

    I need your help, if this is possible.
    ireneluis[/QUOTE][/QUOTE]

  2. The following user says thank you to ireneluis for this useful post:

    chamin (30th December 2010)

Similar Threads

  1. QT-opencv-MACOS
    By ireneluis in forum Qt Programming
    Replies: 0
    Last Post: 15th March 2010, 04:25
  2. Qt and OpenCV
    By malorie in forum Newbie
    Replies: 2
    Last Post: 7th March 2010, 14:57
  3. OpenCv & Qt4
    By switch in forum Qt Programming
    Replies: 0
    Last Post: 4th August 2009, 15:12
  4. JAI vs. OpenCV vs. ITK
    By tpieciak in forum General Programming
    Replies: 0
    Last Post: 8th July 2009, 13:45
  5. OpenCv + Qt
    By Janderson Borges in forum Qt Programming
    Replies: 3
    Last Post: 2nd December 2008, 13:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.