[Insight-users] problems on building the insight-application 2.4.0
ask ITK
askitk at gmail.com
Fri Jan 20 09:24:50 EST 2006
Dear Luis,
Yes, I am using InsightApplications 2.4.0
The error is in the line 196 of
CellsViewerBase.cxx
/**
* Initiate the execution of the simulation
*/
void
CellsViewerBase
::Run(void)
{
m_Stop = false;
if( !m_StartTime )
{
m_StartTime = clock(); // <==== line 196
}
while( !m_Stop )
{
m_Cells->AdvanceTimeStep();
Fl::check();
}
}
I have downloaded the FLTK and build it after compliation of
cmake...seems after this, the building process of the
InsightApplication is faster, but due to this clock() function, the
building process cannot be fully completed.
Thanks for your reply!
===============================================
2006/1/20, Luis Ibanez <luis.ibanez at kitware.com>:
>
> Hi "ask ITK"
>
> Are you sure that you are using InsightApplications 2.4.0 ?
>
> The use of the clock was removed just before the release:
>
> http://www.itk.org/cgi-bin/viewcvs.cgi/Morphogenesis/CellsViewerBase.cxx?root=InsightApplications&sortby=date&r2=1.25&r1=1.24
>
> http://www.itk.org/cgi-bin/viewcvs.cgi/Morphogenesis/CellsViewerBase.h?root=InsightApplications&sortby=date&r2=1.25&r1=1.24
>
>
> The clock() method was replaced with the itkRealTimeClock.
>
>
> Please verify that you are actually using the sources
> of the 2.4 release, and that all the sources are consistently
> taken from the same release... e.g. do not attempt to mix
> code from an old release with code from a newer release.
>
>
>
>
> Thanks
>
>
>
> Luis
>
>
> ---------------
> ask ITK wrote:
> > I get the following error when building the insightapplication-2.4.0
> > When it comes to the morphogenesis...it fails...due to the clock() function.
> > Anyone can help? Thanks a lot!!
> >
> > Build : warning : failed to (or don't know how to) build
> > 'D:\Research\ITK\InsightApplications-2.4.0\bin\Morphogenesis\fluid'
> > Compiling...
> > CellsViewerBase.cxx
> > D:\Research\ITK\InsightApplications-2.4.0\src\Morphogenesis\CellsViewerBase.h
> > (118) : warning C4002: too many actual parameters for macro 'GetCurrentTime'
> > D:\Research\ITK\InsightApplications-2.4.0\src\Morphogenesis\CellsViewerBase.cxx(196)
> > : error C2065: 'clock' : undeclared identifier
> > D:\Research\ITK\InsightApplications-
> > 2.4.0\src\Morphogenesis\CellsViewerBase.cxx(379) : warning C4002: too
> > many actual parameters for macro 'GetCurrentTime'
> >
> > Error due to the function clock() shown below;
> > Please help!
> >
> >
> > /**
> > * Initiate the execution of the simulation
> > */
> > void
> > CellsViewerBase
> > ::Run(void)
> > {
> > m_Stop = false;
> > if( !m_StartTime )
> > {
> > m_StartTime = clock();
> > }
> > while( !m_Stop )
> > {
> > m_Cells->AdvanceTimeStep();
> > Fl::check();
> > }
> > }
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list