[vtkusers] error when building vtk snapshot
David Gobbi
david.gobbi at gmail.com
Tue Nov 23 12:58:28 EST 2010
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101123/5210622b/attachment.htm>
More information about the vtkusers
mailing list