Closed seanlis closed 9 years ago
OpenCV is a very complex C++ library with lots of legacy functions. Binding it all at once like this seems difficult and possibly error prone (memory management, etc).
For such a big library, what I would do is define what I need (classes, functions) and try to bind just these elements.
Dub should output a warning if the ctype is not found instead of crashing. I'll fix this in a new version...
In any case, there is this project which provides some bindings http://sourceforge.net/projects/luacv/.
Released 2.2.3 which should at least display an error with the file/line concerned by the failing ctype resolution.
OK. Thank you for the suggestion.
Gaspard Bucher (bumagy) notifications@github.com于2015年6月26日周五 下午4:58写道:
OpenCV is a very complex C++ library with lots of legacy functions. Binding it all at once like this seems difficult and possibly error prone (memory management, etc).
For such a big library, what I would do is define what I need (classes, functions) and try to bind just these elements.
Dub should output a warning if the ctype is not found instead of crashing. I'll fix this in a new version...
In any case, there is this project which provides some bindings http://sourceforge.net/projects/luacv/.
— Reply to this email directly or view it on GitHub https://github.com/lubyk/dub/issues/9#issuecomment-115586000.
hi,
I got the following error when trying to generate a binding for opencv:
Here is what I did.
I was using Arch linux and opencv 2.4.10-3. First I copied the include file to the working directory:
then run the following script opencv.lua:
./dub-tmp/xml had been generated with some xml files under it. Then I got the error.
Is there anything wrong I did in this process?