I suspect the file that needs fixing is VTK/GUISupport/Qt/CMakeLists.txt<br><br>Where the file has this:<br><br>  # create the sip module<br>  include_directories(${SIP_INCLUDE_DIR})<br><br>Add the following line:<br><br>  include_directories(&quot;${PYTHON_INCLUDE_PATH}&quot;)<br>

<br>Then re-run cmake and recompile.  If it works, let me know and I will add the chage to VTK.<br><br>  David<br><br><br><div class="gmail_quote">On Tue, Nov 23, 2010 at 11:03 AM, Lic. José M. Rodriguez Bacallao <span dir="ltr">&lt;<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">where to find that?<br>
<div><div></div><div class="h5"><br>
On Tue, Nov 23, 2010 at 12:58 PM, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt; wrote:<br>
&gt; In a typical sip install, sip.h goes into /usr/include/python2.6 (or the<br>
&gt; equivalent).  It is possible that the VTK sip wrappers have not been tested<br>
&gt; for the situation where sip.h is installed somewhere else.  Someone should<br>
&gt; check the CMakeFiles to make sure that PYTHON_INCLUDE_DIR is used by sip<br>
&gt; when the sip wrappers are built.<br>
&gt;<br>
&gt;   David<br>
&gt;<br>
&gt; On Tue, Nov 23, 2010 at 10:52 AM, Lic. José M. Rodriguez Bacallao<br>
&gt; &lt;<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I gorgot to mention that I am using my own compiled version of Qt, PyQt<br>
&gt;&gt; and Sip.<br>
&gt;&gt;<br>
&gt;&gt; Qt: v4.7.1<br>
&gt;&gt; Sip: v4.11.2<br>
&gt;&gt; PyQt: v4.8.1<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Nov 23, 2010 at 12:50 PM, Lic. José M. Rodriguez Bacallao<br>
&gt;&gt; &lt;<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; well, PYTHON_INCLUDE_DIR is pointing to: /usr/include/python2.6,<br>
&gt;&gt; &gt; that&#39;s the path where python.h live.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; this is the complete error:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Building CXX object<br>
&gt;&gt; &gt; GUISupport/Qt/CMakeFiles/QVTKPython.dir/sipQVTKPythonQVTKWidget.cpp.o<br>
&gt;&gt; &gt; In file included from<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; /home/jmrbcu/installs/development/imagis/vtk/build/GUISupport/Qt/sipAPIQVTKPython.h:11,<br>
&gt;&gt; &gt;                 from<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; /home/jmrbcu/installs/development/imagis/vtk/build/GUISupport/Qt/sipQVTKPythonQVTKWidget.cpp:7:<br>
&gt;&gt; &gt; /home/jmrbcu/bin/imagis/third_party/sip/include/python2.6/sip.h:32:<br>
&gt;&gt; &gt; fatal error: Python.h: No such file or directory<br>
&gt;&gt; &gt; compilation terminated.<br>
&gt;&gt; &gt; make[2]: ***<br>
&gt;&gt; &gt; [GUISupport/Qt/CMakeFiles/QVTKPython.dir/sipQVTKPythonQVTKWidget.cpp.o]<br>
&gt;&gt; &gt; Error 1<br>
&gt;&gt; &gt; make[1]: *** [GUISupport/Qt/CMakeFiles/QVTKPython.dir/all] Error 2<br>
&gt;&gt; &gt; make: *** [all] Error 2<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Tue, Nov 23, 2010 at 12:44 PM, Eric E. Monson &lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt; hmm... How about PYTHON_INCLUDE_DIR, is that set?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; What is being built when you get the error? Maybe that will help<br>
&gt;&gt; &gt;&gt; someone more knowledgeable diagnose the problem...<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; -Eric<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Nov 23, 2010, at 12:25 PM, Lic. José M. Rodriguez Bacallao wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; no, SIP_INCLUDE_DIR is pointing to where sip.h live.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; On Tue, Nov 23, 2010 at 11:44 AM, Eric E. Monson &lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt;<br>
&gt;&gt; &gt;&gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;&gt; Is your SIP_INCLUDE_DIR set to that directory?<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; -Eric<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; ------------------------------------------------------<br>
&gt;&gt; &gt;&gt;&gt;&gt; Eric E Monson<br>
&gt;&gt; &gt;&gt;&gt;&gt; Duke Visualization Technology Group<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; On Nov 23, 2010, at 11:25 AM, Lic. José M. Rodriguez Bacallao wrote:<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; hi folks, yesterday I downloaded a vtk snapshot and when I try to<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; build it with the python bindings using sip I get the following<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; error:<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; &quot;fatal error: Python.h: No such file or directory&quot;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; and yes, I have Python.h in my system (ubuntu 10.10), it&#39;s located<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; in<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; /usr/include/python2.6/<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; any suggestions?<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Lic. José M. Rodriguez Bacallao<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Centro de Biofisica Medica<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; lo mismo.<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; por profesionales<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt;&gt;&gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; --<br>
&gt;&gt; &gt;&gt;&gt; Lic. José M. Rodriguez Bacallao<br>
&gt;&gt; &gt;&gt;&gt; Centro de Biofisica Medica<br>
&gt;&gt; &gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt; &gt;&gt;&gt; Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo<br>
&gt;&gt; &gt;&gt;&gt; mismo.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
&gt;&gt; &gt;&gt;&gt; por profesionales<br>
&gt;&gt; &gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Lic. José M. Rodriguez Bacallao<br>
&gt;&gt; &gt; Centro de Biofisica Medica<br>
&gt;&gt; &gt; -----------------------------------------------------------------<br>
&gt;&gt; &gt; Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo<br>
&gt;&gt; &gt; mismo.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
&gt;&gt; &gt; por profesionales<br>
&gt;&gt; &gt; -----------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Lic. José M. Rodriguez Bacallao<br>
&gt;&gt; Centro de Biofisica Medica<br>
&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt; Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo<br>
&gt;&gt; mismo.<br>
&gt;&gt;<br>
&gt;&gt; Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
&gt;&gt; por profesionales<br>
&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Lic. José M. Rodriguez Bacallao<br>
Centro de Biofisica Medica<br>
-----------------------------------------------------------------<br>
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.<br>
<br>
Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
por profesionales<br>
-----------------------------------------------------------------<br>
</div></div></blockquote></div><br>