saviopalmieri / ctypes-opencv

Automatically exported from code.google.com/p/ctypes-opencv
0 stars 0 forks source link

Correction for detect_opencv on Linux #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On posix systems, the current detect_opencv() is using load_library while
incorrectly supplying the "lib" prefix as part of the library name.  It
happens to work on OSX since find_library() there tries both with and
without lib, but fails under Linux.  Attached is a proposed patch (against
trunk rev 102) to simply load the most recent .so/.dylib, rather than
trying to hardcode .2 or .1.

Original issue reported on code.google.com by db3l.em...@gmail.com on 26 Dec 2008 at 2:42

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Patched with improvement. Thanks.

Original comment by pmtri80@gmail.com on 26 Dec 2008 at 10:22