[vtk-developers] Python Wrapping Error

David Partyka david.partyka at kitware.com
Thu Oct 20 12:06:20 EDT 2011


If Marcus already fixed it then likely you need to rebase master onto your
branch.

On Thu, Oct 20, 2011 at 12:01 PM, David Partyka
<david.partyka at kitware.com>wrote:

> Likely this is okay, often when newer versions of compilers come out the
> core headers get refactored, eliminating automatic inclusion of others.
>
> On Thu, Oct 20, 2011 at 11:56 AM, Sankhesh Jhaveri <
> sankhesh.jhaveri at kitware.com> wrote:
>
>> Hello fellow developers,
>>
>> Recently, I was running into a problem when building VTK with
>> VTK_WRAP_PYTHON checked.
>>
>> CMake found the right python headers and library but build failed giving
>> an error -
>>
>> [  9%] Building CXX object
>> Wrapping/Python/CMakeFiles/vtkPythonCore.dir/PyVTKObject.cxx.o
>> ~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:23:
>> error: expected primary-expression before ‘,’ token
>> ~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:25:
>> error: ‘vtk_weakreflist’ was not declared in this scope
>> ~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:40:
>> error: ‘offsetof’ was not declared in this scope
>> make[2]: ***
>> [Wrapping/Python/CMakeFiles/vtkPythonCore.dir/PyVTKObject.cxx.o] Error 1
>> make[1]: *** [Wrapping/Python/CMakeFiles/vtkPythonCore.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> I did some digging and found that adding #include <vtksys/cstddef> solved
>> the problem.
>>
>> Is that a valid hack or is it something that I am overlooking?
>>
>> Thanks,
>> Sankhesh
>>
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20111020/2cc8865c/attachment.html>


More information about the vtk-developers mailing list