Results 1 to 2 of 2

Thread: Building an OpenCV application in QT Creator

  1. #1
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Building an OpenCV application in QT Creator

    I built OpenCV with CMake under Visual studio 10, copied the binaries to a /bin folder in the opencv directory. I have a simple OpenCV program with no syntax errors, but I am getting several errors such as "undefined reference to cv::imread". Why is this?

    My .pro file has the following appended at the end of it:

    INCLUDEPATH += C:/opencv/build/include/

    LIBS += -LC:/opencv/build/x64/vc10/lib \
    -lopencv_core231 \
    -lopencv_highgui231 \
    -lopencv_imgproc231 \
    -lopencv_features2d231 \
    -lopencv_calib3d231

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Building an OpenCV application in QT Creator

    Which compiler do you use with creator?
    Are you sure the binaries you made with VisualStudio are 64 bit - and that your project is configured to be 64 bits in creator?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. The following user says thank you to high_flyer for this useful post:

    wwwater (12th September 2011)

Similar Threads

  1. OpenCV integration with Qt creator
    By mind_freak in forum Qt Programming
    Replies: 11
    Last Post: 8th January 2013, 22:50
  2. Deploying a Qt / OpenCV application in Mac OS X
    By hersheyzombie in forum Installation and Deployment
    Replies: 2
    Last Post: 29th July 2011, 00:58
  3. Problem with openCV compilation in Qt Creator
    By mind_freak in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2011, 12:26
  4. Creator - Building Libraries?
    By SixDegrees in forum Qt Programming
    Replies: 8
    Last Post: 6th November 2010, 15:30
  5. Using OpenCV with QT creator
    By gmiller39 in forum Newbie
    Replies: 3
    Last Post: 7th July 2010, 15: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.