<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 26, 2015 at 10:07 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Mar 26, 2015 at 9:57 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><span>On Thu, Mar 26, 2015 at 9:25 AM, Armin Wehrfritz <span dir="ltr"><<a href="mailto:dkxls23@gmail.com" target="_blank">dkxls23@gmail.com</a>></span> wrote:<br></span></span><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
ImportError: ./vtkMyFilterPython.so: : real_initvtkMyFilterPython</blockquote></blockquote><div><br></div></span><span class=""><div>The undefined symbol error probably means that your python module doesn't include vtkMyFilterPythonInit.cxx, which is one of the files generated by vtk_wrap_python3().</div><div><br></div><div>Your cmake should include the Init.cxx as a source file when it builds the module, e.g.:</div><div><br></div><div>add_library(vtkMyFilterPython MODULE vtkMyFilterPythonInit.cxx)</div><div><br></div><div>Or, if that still doesn't fix the problem, then there might be an error in your add_library call for vtkMyFilterPythonD.</div></span></div></div></div></blockquote><div><br></div><div>Oh, and the following lines are also necessary, but only if you build a static library:</div><div><br></div><div>set_target_properties(vtkMyFilter PROPERTIES POSITION_INDEPENDENT_CODE ON) <br></div><div>set_target_properties(vtkMyFilterPythonD PROPERTIES POSITION_INDEPENDENT_CODE ON)</div></div></div></div></blockquote><div><br></div><div>I forgot the the line that is probably the most likely to fix the real_initvtkMyFilterPython symbol error:</div><div><br></div><div>  target_link_libraries(vtkMyFilterPython vtkMyFilterPythonD)</div><div><br></div><div>In summary, a lot of cmake code is needed to get stuff wrapped.</div><div><br></div><div> - David</div></div><br></div></div>