[C++-sig] Boost Python wrapper for a c++ class that uses Opencv 2.3

Kevin Hughes k.hughes at queensu.ca
Wed Sep 21 17:12:37 CEST 2011


Sorry it just fails to import, what should my JamRoot file look like to
include my opencv libs? I am very new to boost python.

On Wed, Sep 21, 2011 at 10:41 AM, Jim Bosch <talljimbo at gmail.com> wrote:

> On 09/21/2011 10:25 AM, Kevin Hughes wrote:
>
>> Thanks for the reply, I tried adding import_array(); to my
>> BOOST_PYTHON_MODULE block but I still got an error when importing my
>> library into python, the same same error I mentioned above.
>>
>
> Does it actually crash Python, or just fail to import the module?  It looks
> like a link error, and that usually just causes the module to fail to
> import.  And that would suggest looking at your build system for whether
> you've linked properly against the opencv libs.
>
> Jim
>
> ______________________________**_________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/**mailman/listinfo/cplusplus-sig<http://mail.python.org/mailman/listinfo/cplusplus-sig>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20110921/47830547/attachment.html>


More information about the Cplusplus-sig mailing list