[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtk-developers
Subject:    Re: [vtk-developers] Python Wrapping Error
From:       David Partyka <david.partyka () kitware ! com>
Date:       2011-10-20 16:06:20
Message-ID: CAPxbyhxdXtMpPucs2Af_RsHGk1asseKDL_wUY49GCqevB+ER1w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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 =91,=92 token
>> ~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.=
cxx:381:25:
>> error: =91vtk_weakreflist=92 was not declared in this scope
>> ~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.=
cxx:381:40:
>> error: =91offsetof=92 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> solve=
d
>> 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
>>
>>
>>
>

[Attachment #5 (text/html)]

If Marcus already fixed it then likely you need to rebase master onto your \
branch.<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 12:01 PM, David \
Partyka <span dir="ltr">&lt;<a \
href="mailto:david.partyka@kitware.com">david.partyka@kitware.com</a>&gt;</span> \
wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">Likely this is okay, often when newer versions of compilers \
come out the core headers get refactored, eliminating automatic inclusion of \
others.<br>

<br><div class="gmail_quote"><div class="im">On Thu, Oct 20, 2011 at 11:56 AM, \
Sankhesh Jhaveri <span dir="ltr">&lt;<a href="mailto:sankhesh.jhaveri@kitware.com" \
target="_blank">sankhesh.jhaveri@kitware.com</a>&gt;</span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div></div><div class="h5"><span style="color:rgb(34, \
34, 34);font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, \
255)"><div>


Hello fellow developers,</div><div><br></div><div>Recently, I was running into a \
problem when building VTK with VTK_WRAP_PYTHON checked.</div>

<div><br>CMake found the right python headers and library but build failed giving an \
error - </div><div><br></div><div><div><font face="&#39;courier new&#39;, monospace" \
color="#ff0000">[  9%] Building CXX object \
Wrapping/Python/CMakeFiles/vtkPythonCore.dir/PyVTKObject.cxx.o</font></div>




<div><font face="&#39;courier new&#39;, monospace" \
color="#ff0000">~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:23: \
error: expected primary-expression before ‘,’ token</font></div><div>



<font face="&#39;courier new&#39;, monospace" \
color="#ff0000">~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:25: \
error: ‘vtk_weakreflist’ was not declared in this scope</font></div> <div><font \
face="&#39;courier new&#39;, monospace" \
color="#ff0000">~/Projects/VTK/Source-correct-test-failures/Wrapping/Python/PyVTKObject.cxx:381:40: \
error: ‘offsetof’ was not declared in this scope</font></div><div><font \
face="&#39;courier new&#39;, monospace" color="#ff0000">make[2]: *** \
[Wrapping/Python/CMakeFiles/vtkPythonCore.dir/PyVTKObject.cxx.o] Error 1</font></div>




<div><font face="&#39;courier new&#39;, monospace" color="#ff0000">make[1]: *** \
[Wrapping/Python/CMakeFiles/vtkPythonCore.dir/all] Error 2</font></div><div><font \
face="&#39;courier new&#39;, monospace" color="#ff0000">make: *** [all] Error \
2</font></div>




</div><div><br></div><div>I did some digging and found that adding <font \
face="&#39;courier new&#39;, monospace" color="#ff0000">#include \
&lt;vtksys/cstddef&gt; </font>solved the problem.</div><div><br></div><div>Is that a \
valid hack or is it something that I am overlooking?</div>




<div><br></div><div>Thanks, </div></span>Sankhesh<font color="#888888"><br><div><font \
face="verdana, sans-serif"><br></font> </div><br> </font><br></div></div><div \
class="im">_______________________________________________<br> Powered by <a \
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br> <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" \
target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br> <br>
<br></div></blockquote></div><br>
</blockquote></div><br>



_______________________________________________
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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic