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("${PYTHON_INCLUDE_PATH}")<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"><<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>></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 <<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>
</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>