Results 1 to 4 of 4

Thread: Should i recompile opencv to run under Qt ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Should i recompile opencv to run under Qt ?

    Qt is not a C++ compiler. Your code example is pure C++ code using OpenCV with an unspecified compiler. From your comment about Visual Studio I assume your compiler is MingW GCC. The error message is from the linker I think, so perhaps you have a missing lib (-l) entry. The libs are called opencv_ml etc. on Linux. Are you sure the libs are called ml210 and not just ml or opencv_ml on Windows? I don't have a Windows version to see if they are named differently.

    You seem to be listing ml210 twice and ml210d (a debug version?) also. Try removing the duplicate and debug version.

    Quote Originally Posted by nackasha View Post
    If I comment CvEM em_model the code compiles:

    Qt Code:
    1. // CvEM em_model;
    2. CvEMParams params;
    To copy to clipboard, switch view to plain text mode 
    CvEMParams doesn't result in an error, so I think that the include paths are ok. Does anyone know how to solve this problem?
    If this compiles and links then em_model is unused and you have already solved the problem. However, the code you linked to uses em_model (unconditionally) and will fail to compile with this line missing. Are you sure it compiles with that line commented?

    Is there a reason you didn't use the latest version (2.3.1)? This may be a bug that is already fixed.

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

    nackasha (16th December 2011)

Similar Threads

  1. recompile Qt, configure get error.
    By c154387417 in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2011, 09:13
  2. Qt Linguist Is it possible to recompile only the tools?
    By PaladinKnight in forum Qt Tools
    Replies: 2
    Last Post: 7th September 2010, 18:21
  3. Replies: 3
    Last Post: 18th December 2009, 19:04
  4. MSVC2K5 recompile /MT(d)
    By musikit in forum Installation and Deployment
    Replies: 2
    Last Post: 16th April 2008, 12:57
  5. How to recompile
    By vishesh in forum Newbie
    Replies: 1
    Last Post: 24th February 2007, 14: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
  •  
Qt is a trademark of The Qt Company.