Please try David Gobbi'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"><<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>></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 --><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"><<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>> wrote:<br>
> where to find that?<br>
><br>
> On Tue, Nov 23, 2010 at 12:58 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
>> In a typical sip install, sip.h goes into /usr/include/python2.6 (or the<br>
>> equivalent). It is possible that the VTK sip wrappers have not been tested<br>
>> for the situation where sip.h is installed somewhere else. Someone should<br>
>> check the CMakeFiles to make sure that PYTHON_INCLUDE_DIR is used by sip<br>
>> when the sip wrappers are built.<br>
>><br>
>> David<br>
>><br>
>> On Tue, Nov 23, 2010 at 10:52 AM, Lic. José M. Rodriguez Bacallao<br>
>> <<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>> wrote:<br>
>>><br>
>>> I gorgot to mention that I am using my own compiled version of Qt, PyQt<br>
>>> and Sip.<br>
>>><br>
>>> Qt: v4.7.1<br>
>>> Sip: v4.11.2<br>
>>> PyQt: v4.8.1<br>
>>><br>
>>><br>
>>> On Tue, Nov 23, 2010 at 12:50 PM, Lic. José M. Rodriguez Bacallao<br>
>>> <<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>> wrote:<br>
>>> > well, PYTHON_INCLUDE_DIR is pointing to: /usr/include/python2.6,<br>
>>> > that's the path where python.h live.<br>
>>> ><br>
>>> > this is the complete error:<br>
>>> ><br>
>>> > Building CXX object<br>
>>> > GUISupport/Qt/CMakeFiles/QVTKPython.dir/sipQVTKPythonQVTKWidget.cpp.o<br>
>>> > In file included from<br>
>>> ><br>
>>> > /home/jmrbcu/installs/development/imagis/vtk/build/GUISupport/Qt/sipAPIQVTKPython.h:11,<br>
>>> > from<br>
>>> ><br>
>>> > /home/jmrbcu/installs/development/imagis/vtk/build/GUISupport/Qt/sipQVTKPythonQVTKWidget.cpp:7:<br>
>>> > /home/jmrbcu/bin/imagis/third_party/sip/include/python2.6/sip.h:32:<br>
>>> > fatal error: Python.h: No such file or directory<br>
>>> > compilation terminated.<br>
>>> > make[2]: ***<br>
>>> > [GUISupport/Qt/CMakeFiles/QVTKPython.dir/sipQVTKPythonQVTKWidget.cpp.o]<br>
>>> > Error 1<br>
>>> > make[1]: *** [GUISupport/Qt/CMakeFiles/QVTKPython.dir/all] Error 2<br>
>>> > make: *** [all] Error 2<br>
>>> ><br>
>>> ><br>
>>> > On Tue, Nov 23, 2010 at 12:44 PM, Eric E. Monson <<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>><br>
>>> > wrote:<br>
>>> >> hmm... How about PYTHON_INCLUDE_DIR, is that set?<br>
>>> >><br>
>>> >> What is being built when you get the error? Maybe that will help<br>
>>> >> someone more knowledgeable diagnose the problem...<br>
>>> >><br>
>>> >> -Eric<br>
>>> >><br>
>>> >> On Nov 23, 2010, at 12:25 PM, Lic. José M. Rodriguez Bacallao wrote:<br>
>>> >><br>
>>> >>> no, SIP_INCLUDE_DIR is pointing to where sip.h live.<br>
>>> >>><br>
>>> >>> On Tue, Nov 23, 2010 at 11:44 AM, Eric E. Monson <<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>><br>
>>> >>> wrote:<br>
>>> >>>> Is your SIP_INCLUDE_DIR set to that directory?<br>
>>> >>>><br>
>>> >>>> -Eric<br>
>>> >>>><br>
>>> >>>> ------------------------------------------------------<br>
>>> >>>> Eric E Monson<br>
>>> >>>> Duke Visualization Technology Group<br>
>>> >>>><br>
>>> >>>><br>
>>> >>>> On Nov 23, 2010, at 11:25 AM, Lic. José M. Rodriguez Bacallao wrote:<br>
>>> >>>><br>
>>> >>>>> hi folks, yesterday I downloaded a vtk snapshot and when I try to<br>
>>> >>>>> build it with the python bindings using sip I get the following<br>
>>> >>>>> error:<br>
>>> >>>>><br>
>>> >>>>> "fatal error: Python.h: No such file or directory"<br>
>>> >>>>><br>
>>> >>>>> and yes, I have Python.h in my system (ubuntu 10.10), it's located<br>
>>> >>>>> in<br>
>>> >>>>> /usr/include/python2.6/<br>
>>> >>>>><br>
>>> >>>>> any suggestions?<br>
>>> >>>>><br>
>>> >>>>> --<br>
>>> >>>>> Lic. José M. Rodriguez Bacallao<br>
>>> >>>>> Centro de Biofisica Medica<br>
>>> >>>>> -----------------------------------------------------------------<br>
>>> >>>>> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos<br>
>>> >>>>> 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<br>
>>> >>>>> <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:<br>
>>> >>>>> <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>
>>> >>>><br>
>>> >>>><br>
>>> >>><br>
>>> >>><br>
>>> >>><br>
>>> >>> --<br>
>>> >>> 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<br>
>>> >>> mismo.<br>
>>> >>><br>
>>> >>> Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
>>> >>> por profesionales<br>
>>> >>> -----------------------------------------------------------------<br>
>>> >><br>
>>> >><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > --<br>
>>> > 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<br>
>>> > mismo.<br>
>>> ><br>
>>> > Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
>>> > por profesionales<br>
>>> > -----------------------------------------------------------------<br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> 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<br>
>>> 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<br>
>>> <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:<br>
>>> <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>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> 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>
<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>