Results 1 to 1 of 1

Thread: How to integrate opencv2.2 and Qt 4.7 in OSX 10.6.6.

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to integrate opencv2.2 and Qt 4.7 in OSX 10.6.6.

    Hi

    I'm not exactly new to Qt4 but t's been a while since I used it. I'm trying to integrate the opencv library with Qt4 creator on the mac and running into problems. most of which I've been blindly trying to resolve and have to some degree.
    I downloaded the opencv2.2 tar.gz library and untar'ed it to my /opt/local/include path and then tried to run this tutorial. At first there were lots of errors which were down to the difference in the folder hierachy of the library being changed.

    This is how the .pro file now looks like:
    TEMPLATE = app
    TARGET =
    DEPENDPATH += .

    INCLUDEPATH += /opt/local/include/OpenCV-2.2.0/include \
    /opt/local/include/OpenCV-2.2.0/include/opencv2 \
    /opt/local/include/OpenCV-2.2.0/modules/core/include \
    /opt/local/include/OpenCV-2.2.0/modules/imgproc/include \
    /opt/local/include/OpenCV-2.2.0/modules/video/include \
    /opt/local/include/OpenCV-2.2.0/modules/features2d/include \
    /opt/local/include/OpenCV-2.2.0/modules/flann/include \
    /opt/local/include/OpenCV-2.2.0/modules/objdetect/include \
    /opt/local/include/OpenCV-2.2.0/modules/calib3d/include \
    /opt/local/include/OpenCV-2.2.0/modules/legacy/include \
    /opt/local/include/OpenCV-2.2.0/modules/highgui/include \


    SOURCES += main.cpp QOpenCVWidget.cpp MyCameraWindow.cpp
    HEADERS += QOpenCVWidget.cpp MyCameraWindow.h

    The include paths are the only changes I've made to it to help resolve the missing modules while I was trying to compile the tutorial.
    At the moment I only get one error:
    Qt Code:
    1. :: error: [moc_MyCameraWindow.cpp] Error 1
    To copy to clipboard, switch view to plain text mode 
    and I don't know what's causing it. Any help would be greatly appreciated.

    Edit:
    I recompiled openCV with CMake and get the following errors:
    (i) symbol(s) not found
    (ii) collect2: ld returned 1 exit status
    Last edited by WDT; 12th March 2011 at 23:53.

Similar Threads

  1. How to integrate QWT 6.0 with QT Creator 2.01??
    By balutvm in forum Qt Programming
    Replies: 0
    Last Post: 16th December 2010, 12:43
  2. Qt Creator How to integrate STL documentation?
    By niXman in forum Qt Tools
    Replies: 6
    Last Post: 12th September 2010, 06:39
  3. Integrate Designer into own Ui
    By NoRulez in forum Qt Programming
    Replies: 9
    Last Post: 14th July 2010, 14:48
  4. How to integrate Qt and Opencv
    By diego in forum Newbie
    Replies: 1
    Last Post: 26th June 2009, 10:27
  5. How to Integrate Qt with 'C'
    By deepakn in forum Newbie
    Replies: 3
    Last Post: 8th August 2007, 15:46

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