[vtkusers] error when building vtk snapshot

Lic. José M. Rodriguez Bacallao jmrbcu at gmail.com
Wed Nov 24 08:31:13 EST 2010


hi folks, I solved yesterday trouble with cmake not finding Python.h
but now I am facing a new problem, I cannot build vtk with python
bindings (swig and sip) without checking infovis and geovis, any
suggestions?

On Tue, Nov 23, 2010 at 4:14 PM, Lic. José M. Rodriguez Bacallao
<jmrbcu at gmail.com> wrote:
> well, the clean build was just fine, but I cannot build vtk with
> python sip  bindings activated and infovis and geovis deactivated.
>
> On Tue, Nov 23, 2010 at 1:43 PM, Lic. José M. Rodriguez Bacallao
> <jmrbcu at gmail.com> wrote:
>> well, it seems that that was the problem, all built fine, let me do a
>> clean build, please before you commit the change to trunk
>>
>> On Tue, Nov 23, 2010 at 1:36 PM, Lic. José M. Rodriguez Bacallao
>> <jmrbcu at gmail.com> wrote:
>>> I will do that, wait a few minutes and I will give you the feedback you need.
>>>
>>> On Tue, Nov 23, 2010 at 1:21 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>>>> I suspect the file that needs fixing is VTK/GUISupport/Qt/CMakeLists.txt
>>>>
>>>> Where the file has this:
>>>>
>>>>   # create the sip module
>>>>   include_directories(${SIP_INCLUDE_DIR})
>>>>
>>>> Add the following line:
>>>>
>>>>   include_directories("${PYTHON_INCLUDE_PATH}")
>>>>
>>>> Then re-run cmake and recompile.  If it works, let me know and I will add
>>>> the chage to VTK.
>>>>
>>>>   David
>>>>
>>>>
>>>> On Tue, Nov 23, 2010 at 11:03 AM, 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
>>> -----------------------------------------------------------------
>>>
>>
>>
>>
>> --
>> 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
-----------------------------------------------------------------



More information about the vtkusers mailing list