[vtkusers] error when building vtk snapshot
Eric E. Monson
emonson at cs.duke.edu
Tue Nov 23 13:24:37 EST 2010
You can try
make VERBOSE=1
and look at the command that it errors out on and it will probably be missing a -I/usr/include/python2.6 flag, but that won't really tell you why it's missing...
On my system, sip is installed (ran 'sudo make install' after building it from source), so I'm not trying to point to a sip header directory that's in my home path, and thus sip.h and Python.h both live in the same place. I wonder if there is some assumption built into the sip python wrapping build commands that both headers will be in the same place?
Sorry I can't be more help,
-Eric
On Nov 23, 2010, at 12:50 PM, Lic. José M. Rodriguez Bacallao 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
> -----------------------------------------------------------------
More information about the vtkusers
mailing list