<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi David,</div><div class=""><br class=""></div><div class=""><a href="https://gitlab.kitware.com/cmb/smtk/merge_requests/852/diffs" class="">This MR</a> adds an example for passing multiple include paths to the python script. I’d be happy to make the interface less clunky if you think that would help (you are not the first person who found this syntax unintuitive).</div><div class=""><br class=""></div><div class="">Sincerely,</div><div class="">T.J.</div><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Thomas J. Corona, Ph.D.<br class="">Kitware, Inc.<br class="">Senior R&D Engineer<br class="">21 Corporate Drive<br class="">Clifton Park, NY 12065-8662<br class="">Phone: 518-881-4443</div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Sep 14, 2017, at 5:50 PM, David Thompson <<a href="mailto:david.thompson@kitware.com" class="">david.thompson@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi TJ (at al.),<br class=""><br class="">I'm having problems running the script to generate Pybind11 bindings after making some changes to smtk::model. The generate_pybind11_module.py script dies because it cannot find moab includes. Adding additional "-I" arguments to specify where the extra headers exist does not seem to work, nor does passing in CXXFLAGS environment variables like so:<br class=""><br class=""> cd /path/to/SMTK/source<br class=""> export CXXFLAGS=" -I/Stage/Build/cmb/common-superbuild/install/include"<br class=""> python2.7 utilities/python/generate_pybind11_module.py \<br class=""> -I /path/to/build/dir -i smtk/model -o /tmp/pybind11 -m smtk.model -s `pwd`<br class=""><br class="">Do you have an example of how to run the script? The docs[1] don't go over the options or how to handle missing includes.<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Thanks,<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>David<br class=""><br class="">[1]: <a href="http://smtk.readthedocs.io/en/latest/userguide/bindings/generating-pybind11-bindings.html" class="">http://smtk.readthedocs.io/en/latest/userguide/bindings/generating-pybind11-bindings.html</a><br class=""><br class="">The error message is:<br class=""><br class="">INFO Parsing source file "/path/to/smtk/model/AttributeListPhrase.h" ... <br class="">In file included from /path/to/smtk/model/AttributeListPhrase.h:14:<br class="">In file included from ./smtk/model/DescriptivePhrase.h:14:<br class="">In file included from ./smtk/mesh/MeshSet.h:17:<br class="">In file included from ./smtk/mesh/CellSet.h:18:<br class="">In file included from ./smtk/mesh/Handle.h:17:<br class="">./smtk/mesh/moab/HandleRange.h:20:10: fatal error: 'moab/EntityHandle.hpp' file not found<br class="">#include "moab/EntityHandle.hpp"<br class=""> ^<br class="">1 error generated.<br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>