Results 1 to 2 of 2

Thread: How to Include OpenCV source code ? ( no pre-compiled Libraries )

  1. #1
    Join Date
    Jul 2011
    Location
    BRAZIL-RIO DE JANEIRO
    Posts
    47
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to Include OpenCV source code ? ( no pre-compiled Libraries )

    Dear friends,


    In order to allow operating system interportability, I wish compile OpenCV source files ( *.c / *.h ) together project files, instead only include those already pre-compiled libraries ( *.lib ). What I mean is that would like replace bellow statements at project file :
    Qt Code:
    1. LIBS += C:/OpenCV2.3/build/x86/vc9/lib/opencv_features2d230.lib
    To copy to clipboard, switch view to plain text mode 
    By its source code :
    Qt Code:
    1. #include"C:\OpenCV2.3\build\include\opencv2\features2d\features2d.hpp"
    To copy to clipboard, switch view to plain text mode 

    Any advice ?


    +++

  2. #2
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to Include OpenCV source code ? ( no pre-compiled Libraries )

    create a ".pri" file which contains all the source and header of the OpenCV and necessary macros.
    then include it in ".pro" file
    Qt Code:
    1. include(example.pri)
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 4
    Last Post: 21st July 2013, 22:06
  2. reading qt + opencv source code
    By nkint in forum Newbie
    Replies: 1
    Last Post: 3rd June 2013, 05:14
  3. Emulating Qt compiled code for MIPS in VirtualFrameBuffer(Qvfb in X11-X86 compiled)
    By sunil-vasudevan in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd October 2012, 06:07
  4. Using libraries compiled with Cygwin
    By JovianGhost in forum General Programming
    Replies: 6
    Last Post: 12th January 2011, 01:02
  5. how to exclude few libraries from existing QT source code?
    By nivditha in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 13th October 2010, 07:06

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.