[vtkusers] error when building vtk snapshot

Lic. José M. Rodriguez Bacallao jmrbcu at gmail.com
Tue Nov 23 13:20:28 EST 2010


well, it seems that the sip bindings are assuming that python include
files are located in the same directory that sip.h. What I did first
was to created a link to sip.h in /usr/include/python2.6 pointing to
where my sip.h file was located

/usr/include/python2.6/sip.h -->
/home/jmrbcu/bin/imagis/third_party/sip/include/python2.6/sip.h

but in this way, the building process keep failing, then I copy all
include files from /usr/include/python2.6 to where I have located
sip.h and everything worked ok.

could please fix this in vtk trunk?

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



-- 
Lic. José M. Rodriguez Bacallao
Centro de Biofisica Medica
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.

Recuerda: El arca de Noe fue construida por aficionados, el titanic
por profesionales
-----------------------------------------------------------------



More information about the vtkusers mailing list