Please try David Gobbi&#39;s suggestion. We recently re-factored how Python is included in the CMakeLists files which is probably what is causing your build issue.<br><br><div class="gmail_quote">On Tue, Nov 23, 2010 at 1:20 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">well, it seems that the sip bindings are assuming that python include<br>
files are located in the same directory that sip.h. What I did first<br>
was to created a link to sip.h in /usr/include/python2.6 pointing to<br>
where my sip.h file was located<br>
<br>
/usr/include/python2.6/sip.h --&gt;<br>
<div class="im">/home/jmrbcu/bin/imagis/third_party/sip/include/python2.6/sip.h<br>
<br>
</div>but in this way, the building process keep failing, then I copy all<br>
include files from /usr/include/python2.6 to where I have located<br>
sip.h and everything worked ok.<br>
<br>
could please fix this in vtk trunk?<br>
<br>
On Tue, Nov 23, 2010 at 1:03 PM, Lic. José M. Rodriguez Bacallao<br>
<div><div></div><div class="h5">&lt;<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>&gt; wrote:<br>
&gt; where to find that?<br>
&gt;<br>
&gt; 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;&gt; In a typical sip install, sip.h goes into /usr/include/python2.6 (or the<br>
&gt;&gt; equivalent).  It is possible that the VTK sip wrappers have not been tested<br>
&gt;&gt; for the situation where sip.h is installed somewhere else.  Someone should<br>
&gt;&gt; check the CMakeFiles to make sure that PYTHON_INCLUDE_DIR is used by sip<br>
&gt;&gt; when the sip wrappers are built.<br>
&gt;&gt;<br>
&gt;&gt;   David<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Nov 23, 2010 at 10:52 AM, 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;<br>
&gt;&gt;&gt; I gorgot to mention that I am using my own compiled version of Qt, PyQt<br>
&gt;&gt;&gt; and Sip.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Qt: v4.7.1<br>
&gt;&gt;&gt; Sip: v4.11.2<br>
&gt;&gt;&gt; PyQt: v4.8.1<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, Nov 23, 2010 at 12:50 PM, Lic. José M. Rodriguez Bacallao<br>
&gt;&gt;&gt; &lt;<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt; well, PYTHON_INCLUDE_DIR is pointing to: /usr/include/python2.6,<br>
&gt;&gt;&gt; &gt; that&#39;s the path where python.h live.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; this is the complete error:<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Building CXX object<br>
&gt;&gt;&gt; &gt; GUISupport/Qt/CMakeFiles/QVTKPython.dir/sipQVTKPythonQVTKWidget.cpp.o<br>
&gt;&gt;&gt; &gt; In file included from<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; /home/jmrbcu/installs/development/imagis/vtk/build/GUISupport/Qt/sipAPIQVTKPython.h:11,<br>
&gt;&gt;&gt; &gt;                 from<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; /home/jmrbcu/installs/development/imagis/vtk/build/GUISupport/Qt/sipQVTKPythonQVTKWidget.cpp:7:<br>
&gt;&gt;&gt; &gt; /home/jmrbcu/bin/imagis/third_party/sip/include/python2.6/sip.h:32:<br>
&gt;&gt;&gt; &gt; fatal error: Python.h: No such file or directory<br>
&gt;&gt;&gt; &gt; compilation terminated.<br>
&gt;&gt;&gt; &gt; make[2]: ***<br>
&gt;&gt;&gt; &gt; [GUISupport/Qt/CMakeFiles/QVTKPython.dir/sipQVTKPythonQVTKWidget.cpp.o]<br>
&gt;&gt;&gt; &gt; Error 1<br>
&gt;&gt;&gt; &gt; make[1]: *** [GUISupport/Qt/CMakeFiles/QVTKPython.dir/all] Error 2<br>
&gt;&gt;&gt; &gt; make: *** [all] Error 2<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&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; &gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; hmm... How about PYTHON_INCLUDE_DIR, is that set?<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; What is being built when you get the error? Maybe that will help<br>
&gt;&gt;&gt; &gt;&gt; someone more knowledgeable diagnose the problem...<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; -Eric<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; On Nov 23, 2010, at 12:25 PM, Lic. José M. Rodriguez Bacallao wrote:<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; no, SIP_INCLUDE_DIR is pointing to where sip.h live.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&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;&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt; Is your SIP_INCLUDE_DIR set to that directory?<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt; -Eric<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt; ------------------------------------------------------<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt; Eric E Monson<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt; Duke Visualization Technology Group<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&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;&gt;<br>
&gt;&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;&gt; build it with the python bindings using sip I get the following<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; error:<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&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;&gt;<br>
&gt;&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;&gt; in<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; /usr/include/python2.6/<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; any suggestions?<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; Lic. José M. Rodriguez Bacallao<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; Centro de Biofisica Medica<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&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;&gt; lo mismo.<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt;&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;&gt; por profesionales<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&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;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&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;&gt;<br>
&gt;&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;&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;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&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;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt;&gt; Lic. José M. Rodriguez Bacallao<br>
&gt;&gt;&gt; &gt;&gt;&gt; Centro de Biofisica Medica<br>
&gt;&gt;&gt; &gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt;&gt; &gt;&gt;&gt; Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo<br>
&gt;&gt;&gt; &gt;&gt;&gt; mismo.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
&gt;&gt;&gt; &gt;&gt;&gt; por profesionales<br>
&gt;&gt;&gt; &gt;&gt;&gt; -----------------------------------------------------------------<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; --<br>
&gt;&gt;&gt; &gt; Lic. José M. Rodriguez Bacallao<br>
&gt;&gt;&gt; &gt; Centro de Biofisica Medica<br>
&gt;&gt;&gt; &gt; -----------------------------------------------------------------<br>
&gt;&gt;&gt; &gt; Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo<br>
&gt;&gt;&gt; &gt; mismo.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
&gt;&gt;&gt; &gt; por profesionales<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;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Visit other Kitware open-source projects at<br>
&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;<br>
&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&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;<br>
&gt;&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&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;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Lic. José M. Rodriguez Bacallao<br>
&gt; Centro de Biofisica Medica<br>
&gt; -----------------------------------------------------------------<br>
&gt; Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.<br>
&gt;<br>
&gt; Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
&gt; por profesionales<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>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>