Results 1 to 4 of 4

Thread: Problem with QtCreator + OpenCV

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2010
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Thumbs down Re: Problem with QtCreator + OpenCV

    No, I am not sure, I tested 10 000 things, but if I put
    Qt Code:
    1. LIBS += -lcv
    To copy to clipboard, switch view to plain text mode 
    I get the following error:
    Qt Code:
    1. Running build steps for project Qt...
    2. Configuration unchanged, skipping qmake step.
    3. Starting: "/usr/bin/make" -w
    4. make: Entering directory `/Users/Laura/Desktop/VC/Qt-build-desktop'
    5. g++ -headerpad_max_install_names -arch i386 -o Qt.app/Contents/MacOS/Qt main.o mainwindow.o moc_mainwindow.o -F/Library/Frameworks -L/Library/Frameworks -lcv -framework QtGui -framework QtCore
    6. ld: warning: in /usr/lib/libcv.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    7. Undefined symbols:
    8. "cv::fastFree(void*)", referenced from:
    9. cv::Mat::release() in main.o
    10. ld: symbol(s) not found
    11. collect2: ld returned 1 exit status
    12. make: *** [Qt.app/Contents/MacOS/Qt] Error 1
    13. make: Leaving directory `/Users/Laura/Desktop/VC/Qt-build-desktop'
    14. The process "/usr/bin/make" exited with code %2.
    15. Error while building project Qt (target: Desktop)
    16. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 
    and -lcv210 not find it (I have installed opencv2.1)

  2. #2
    Join Date
    Sep 2010
    Posts
    1
    Qt products
    Qt3
    Platforms
    Windows

    Lightbulb Re: I hooe this is not a late help bro.

    Hello,
    Hello:
    I faced the same problem while trying to use OpenCv library with Qt!
    I am using:
    1) OpenCv2.0
    2) Qt Creator 2.01 Based on Qt 4.7.0 (32 bit)
    3) Windows Xp

    So I solved the problem by adding the following tags in the .pro file:

    LIBS += -L C:\OpenCV2.0\bin -lcxcore200 -lcv200 -lcvaux200 -lhighgui200 -lml200 -lcxts200
    INCLUDEPATH += C:/OpenCV2.0/include/opencv


    Hope this will work

Similar Threads

  1. OpenCv Problem
    By danics in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2010, 10:40
  2. Problem wth Opencv & Qt 4
    By Casper2004 in forum Qt Programming
    Replies: 0
    Last Post: 28th September 2009, 09:33
  3. Replies: 1
    Last Post: 1st July 2009, 09:19
  4. I've got a qt&opencv problem.
    By eralvc in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd October 2008, 09:58

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.