Here is the JamRoot file I have been using: using python ;
# Specify that the boost-python library exists under the name # boost_python. That is, because the library was installed at the # standard search path as /usr/lib/libboost_python.so, bjam will find # it automatically. No need to specify the absolute path. # lib libboost_python : : <name>boost_python-mt ; lib libboost_python : : <name>boost_python ; lib libboost_date_time : : <name>boost_date_time ; # Set up the project-wide requirements that everything uses the # boost_python library. project : requirements <library>libboost_python ; # Declare the extension modules. You can specify multiple # source files after the colon separated by spaces. python-extension libFoo : wrap_foo.cpp ; On Wed, Sep 21, 2011 at 11:12 AM, Kevin Hughes <k.hug...@queensu.ca> wrote: > 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 <tallji...@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@python.org >> http://mail.python.org/**mailman/listinfo/cplusplus-sig<http://mail.python.org/mailman/listinfo/cplusplus-sig> >> > >
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig