Wrapping a library where no source is available (only header)

26 views
Skip to first unread message

Eero af Heurlin

unread,
Mar 14, 2017, 12:01:15 PM3/14/17
to xdress
I have a proprietary library http://www.sightcorp.com/docs/crowdsight/latest/class_crowd_sight.html (binaries from http://sightcorp.com/packages/) which builds on OpenCV, which I'd very much like to access from Python for many, many reasons.

Anyway I have trouble figuring out how to tell it about OpenCV types, also:

/usr/include/crowdsight.h:226:18: fatal error: vector: No such file or directory

 #include <vector>

 


I kinda hoped this would have been simpler than with SIP (where I also ran into a wall trying to figure out how to tell it about OpenCV types).


My stuff: https://github.com/rambo/python-libcrowdsight/tree/xdress


Anyway, is xdress+Cython doomed to fail anyway since the original sources are not available ?? only the .so file and the public api in the header are.



Eero af Heurlin

unread,
Mar 14, 2017, 12:03:39 PM3/14/17
to xdress
Also, I'm pretty much total n00b when it comes to Cython or python bindings interface in general.
Reply all
Reply to author
Forward
0 new messages