Results 1 to 2 of 2

Thread: OpenCV library for Qt

  1. #1
    Join Date
    May 2012
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default OpenCV library for Qt

    Hi,
    I'm facing some troubles with using OpenCV libraries for Qt.. (Qt 4.8.0, Mac OS X)
    I've downloaded and compiled them through cmake in: Macintosh HD/Library/OpenCV-2.4.0/builds_with_Qt/release/lib/
    (just some few examples: I can see libopencv_calib3d_pch_dephelp.a, libopencv_calib3d.2.4.0.dylib and many others in that folder..)

    Now I would like to use them as static in my Qt Project so I've inserted in my .pro file:
    LIBS += -L"/Library/OpenCV-2.4.0/builds_with_Qt/debug/lib/" -l"libopencv_videostab_pch_dephelp.a"
    INCLUDEPATH += "/Library/OpenCV-2.4.0/builds_with_Qt/debug/lib/"include

    But when I compile the following message is displayed:
    [I]"library not found for -llibopencv_videostab_pch_dephelp.a"

    I also tried adding them through guided "Add Library.." procedure, but even if compiling goes fine I can not add any "#include <opencv*****>" to my main.h / main.cpp

    Thanks in advance!

    Andrea

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: OpenCV library for Qt

    try -l"libopencv_videostab_pch_dephelp"

    Qt Code:
    1. INCLUDEPATH += "/Library/OpenCV-2.4.0/builds_with_Qt/debug/lib/"include
    To copy to clipboard, switch view to plain text mode 
    did you really use that? check closely...
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Replies: 3
    Last Post: 4th January 2013, 06:40
  2. Replies: 3
    Last Post: 20th December 2012, 12:48
  3. Using Qt 4.8.2 with OpenCV 2.4 Library Problem
    By omaroo161 in forum Installation and Deployment
    Replies: 1
    Last Post: 25th July 2012, 11:02
  4. Replies: 2
    Last Post: 25th March 2012, 22:57
  5. Replies: 2
    Last Post: 19th February 2011, 11:26

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.