[vtkusers] Building VTKEdge

Karthik Krishnan karthik.krishnan at kitware.com
Tue Feb 22 12:16:54 EST 2011


"i" is declared. There is no problem here. I suspect that your zip archive
did not extract correctly, judging from the error :

"warning C4819: The file contains a character that cannot be represented in
the current code page (949). Save the file in Unicode format to prevent data
loss"


The VTK dashboard has no errors and this file hasn't been touched in ages.

Try re-downloading the nightly archives again, or get these from GIT. See
www.*vtk*.org/Wiki/*VTK*/*Git for more info*

--
karthik

On Tue, Feb 22, 2011 at 6:23 PM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

> I am using Visual Studio 2008 under windows7 64bit version. I checked the
> code, seems that the “i” in line 2919 is not declared indeed.
>
>
>
> The code there:
>
> for(int i=0;i<(nv-1);i++)
>
>       {
>
>       derivatives[i] = make_REAL3(0,0,0);
>
>       }
>
>
>
>     REAL volume = 0;
>
>
>
>     // construction de la fonction cubique par morceau du volume
> tronqu?    for(int i=0;i<nt;i++)
>
>       {
>
>       // calcul de la surface de l'intersection plan/tetra aux point P1 et
> P2
>
>
>
>
>
>
>
>       *uchar4 tetra = sortTetra( tv[i] , rindex );*
>
>
>
>
>
>       DBG_MESG( "\ntetra "<<i<<" : "<<tv[i].x<<','<<tv[i].y<<','
> <<tv[i].z<<','<<tv[i].w<<" -> "<<tetra.x<<','<<tetra.y<<','<<tetra.z<<','<<tetra.w
> );
>
>
>
>       // calcul des sous fonctions cubiques du volume derriere le plan en
> fonction de la distance
>
>       REAL3 tetraSurfFunc[3];
>
>       volume += tetraPlaneSurfFunc( tetra, vertices, normal, tetraSurfFunc
> );
>
>
>
> #ifdef DEBUG
>
>       for(int k=0;k<3;k++)
>
>         {
>
>         DBG_MESG( "surf["<<k<<"] =
> "<<tetraSurfFunc[k].x<<','<<tetraSurfFunc[k].y<<','<<tetraSurfFunc[k].z );
>
>         }
>
> #endif
>
>
>
>       // surface function bounds
>
>       unsigned int i0 = rindex[ tetra.x ];
>
>       unsigned int i1 = rindex[ tetra.y ];
>
>       unsigned int i2 = rindex[ tetra.z ];
>
>       unsigned int i3 = rindex[ tetra.w ];
>
>
>
>       DBG_MESG( "surf(x) steps = "<<i0<<','<<i1<<','<<i2<<','<<i3 );
>
>
>
>       DBG_MESG( "ajout surfFunc sur ["<<i0<<';'<<i1<<"]" );
>
>       for(unsigned int j=i0;j<i1;j++) derivatives[j] += tetraSurfFunc[0] ;
>
>
>
>       DBG_MESG( "ajout surfFunc sur ["<<i1<<';'<<i2<<"]" );
>
>       for(unsigned int j=i1;j<i2;j++) derivatives[j] += tetraSurfFunc[1] ;
>
>
>
>       DBG_MESG( "ajout surfFunc sur ["<<i2<<';'<<i3<<"]" );
>
>       for(unsigned int j=i2;j<i3;j++) derivatives[j] += tetraSurfFunc[2] ;
>
>       }
>
>
>
> *发件人**:* Karthik Krishnan [mailto:karthik.krishnan at kitware.com]
> *发送时间:* 2011년 2월 22일 화요일 오후 9:35
>
> *收件人:* Xiaopeng Yang
> *抄送:* vtk
> *主题:* Re: [vtkusers] Building VTKEdge
>
>
>
> Are you compiling with VS6 ? Its no longer a supported compiler.
>
> On Tue, Feb 22, 2011 at 5:24 PM, Xiaopeng Yang <yxp233 at postech.ac.kr>
> wrote:
>
> I found the location where error occurs:
>
>
>
>
>
>
>
> Compiling...
>
> vtkAnnotationLink.cxx
>
> vtkGraphicsInstantiator.cxx
>
> vtkYoungsMaterialInterface.cxx
>
> ..\..\VTK\Graphics\vtkYoungsMaterialInterface.cxx(1659) : warning C4819:
> The file contains a character that cannot be represented in the current code
> page (949). Save the file in Unicode format to prevent data loss
>
> ..\..\VTK\Graphics\vtkYoungsMaterialInterface.cxx(2719) : warning C4819:
> The file contains a character that cannot be represented in the current code
> page (949). Save the file in Unicode format to prevent data loss
>
> ..\..\VTK\Graphics\vtkYoungsMaterialInterface.cxx(2919) : error C2065: 'i'
> : undeclared identifier
>
>
>
> Thanks.
>
> *发**件人**:* Karthik Krishnan [mailto:karthik.krishnan at kitware.com]
> *发**送**时间**:* 2011년 2월 22일 화요일 오후 8:06
>
>
> *收件人**:* Xiaopeng Yang
> *抄送**:* vtk
> *主**题**:* Re: [vtkusers] Building VTKEdge
>
>
>
> Please post the error where vtkGraphics wasn't built.. can't make out from
> these messages.
>
> On Tue, Feb 22, 2011 at 2:11 PM, Xiaopeng Yang <yxp233 at postech.ac.kr>
> wrote:
>
> Hi Karthik, I was trying to build nightly-master but met errors during the
> building process.
>
>
>
> 43>Linking...
>
> 43>LINK : fatal error LNK1181: cannot open input file
> '..\bin\Release\vtkGraphics.lib'
>
> 43>Build log was saved at
> "file://d:\Toolbox\VTK\Bin\Rendering\vtkRendering.dir\Release\BuildLog.htm"
>
> 43>vtkRendering - 1 error(s), 0 warning(s)
>
>
>
> 54>LINK : fatal error LNK1181: cannot open input file
> '..\..\..\bin\Release\vtkRendering.lib'
>
> 47>vtkMemoryLimitImageDataStreamer.cxx
>
> 54>Build log was saved at
> "file://d:\Toolbox\VTK\Bin\Imaging\Testing\Cxx\ImagingCxxTests.dir\Release\BuildLog.htm"
>
> 54>ImagingCxxTests - 1 error(s), 0 warning(s)
>
>
>
> Do you know why the errors occurred?
>
>
>
> Thank you,
>
> Yang
>
>
>
> *发**件人**:* vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] *代表*
> * *Xiaopeng Yang
> *发**送**时间**:* 2011년 2월 22일 화요일 오후 2:28
> *收件人**:* 'Karthik Krishnan'
>
>
> *抄送**:* 'vtk'
> *主**题**:* Re: [vtkusers] Building VTKEdge
>
>
>
> Thanks so much. Could you tell me the difference between nightly-master and
> common VTK? Furthermore, is it proper to build VTKEdge from this address
> https://www.kitware.com:8443/svn/KWPublic/trunk/VTKEdge against the
> night-master? I heard that the version of VTKEdge should be the same as VTK.
>
>
>
>
> *发**件人**:* Karthik Krishnan [mailto:karthik.krishnan at kitware.com]
> *发**送**时间**:* 2011년 2월 22일 화요일 오후 2:03
> *收件人**:* Xiaopeng Yang
> *抄送**:* vtk
> *主**题**:* Re: [vtkusers] Building VTKEdge
>
>
>
> I would recommend you build against nightly-master. You can get the
> development versin through git or download a zip ball at
> https://github.com/Kitware/VTK/zipball/nightly-master
>
> On Tue, Feb 22, 2011 at 9:34 AM, Xiaopeng Yang <yxp233 at postech.ac.kr>
> wrote:
>
> Hell all,
>
>
>
> Is it possible to build VTKEdge against non CVS VTK? I am using VTK 5.6.1
> and downloaded VTKEdge through
> https://www.kitware.com:8443/svn/KWPublic/trunk/VTKEdge using SVN check
> out.
>
>
>
> Thanks a lot,
>
> Yang
>
>
> _______________________________________________
> 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
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110222/981fb13f/attachment.htm>


More information about the vtkusers mailing list