[vtk-developers] Python Wrapping errors

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Nov 3 14:41:57 EDT 2010


Hi Eric,

On Wed, Nov 3, 2010 at 2:20 PM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hey Marcus,
>
> I'm switching this thread from Titan over to the VTK mailing list since that's where I'm having problems with this Python wrapping issue.

I announced this on the VTK developer list too.
>
> Now that some system includes have been stripped out of the VTK_INCLUDE_DIRS variable, could you add the PYTHON_INCLUDE_DIRS variable to the VTKConfig.cmake file so the VTK-configured value can be used in external projects?
>
It is possible to add this to the VTKConfig, should the MPI include
dir etc be added too? I could add a dump of all of the
SYSTEM_INCLUDE_DIRS as a config variable, this might be the easiest in
terms of porting effort if people want to use it.

Marcus
>
> On Nov 2, 2010, at 2:36 PM, Marcus D. Hanwell wrote:
>
>> Modifying the CMakeLists to add PYTHON_INCLUDE_DIRS to the
>> include_directories for the project. It would be ensuring
>> FindPythonLibs had been called, and then calling
>>
>> include_directories(${PYTHON_INCLUDE_DIRS})
>>
>> in the appropriate spot.
>>
>> Marcus
>>
>> On Tue, Nov 2, 2010 at 2:30 PM, Davis, Warren Leon <wldavis at sandia.gov> wrote:
>>> Hmm, I’m a tad confused. If you’re talking about the directories in my
>>> CMakeCache, they seem to be pointing to the right places in both Titan and
>>> vtkSNL
>>>
>>> PYTHON_INCLUDE_DIR:PATH=/System/Library/Frameworks/Python.framework/Headers
>>> PYTHON_LIBRARY:FILEPATH=/usr/lib/libpython2.6.dylib
>>>
>>> Or are you talking about modifying the CMakeList.txt..?
>>>
>>> On 11/2/10 11:10 AM, "Marcus D. Hanwell" <marcus.hanwell at kitware.com> wrote:
>>>
>>> On Tue, Nov 2, 2010 at 12:45 PM, Davis, Warren Leon <wldavis at sandia.gov>
>>> wrote:
>>>> Does anyone have any idea what is going on here?
>>>>
>>>> http://www.cdash.org/CDash/viewBuildError.php?buildid=766199
>>>>
>>>> I don’t have these build errors on MacOSX 10.6.4... Not in the Titan repo
>>>> at
>>>> least. I get them when I try to compile vtkSNL with Python Wrapping turned
>>>> on. I thought it was specific to that repo until I saw them on the
>>>> dashboard.
>>>
>>> Ah, it is related to the removal of system include paths in
>>> VTK_INCLUDE_DIRS. You need to find Python libs, and add
>>> PYTHON_INCLUDE_DIRS to the include directories. If you are having
>>> trouble I can make the change for you in vtkSNL.
>>>
>>> Marcus
>>>
>> _______________________________________________
>> Titan-developers mailing list
>> Titan-developers at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/titan-developers
>
>



More information about the vtk-developers mailing list