[Insight-users] missing rt.lib with CITK

barbababa tonimuusimaki at gmail.com
Fri Dec 9 07:55:57 EST 2011


Hello,
has anyone any experience with this
http://www.midasjournal.org/browse/publication/802

I am trying to build it with visual studio 9 2008 release x64 using win7
64bit.
I fetch the code with git and building it went through without errors except
i did not find the libcutil.a , which was mentioned in the pdf file, instead
i used cUtil64.lib. ???

"
Specify location of CUDA SDK. Note that if there is trouble locating
libcutil.a, it may be set explicitly
under advanced options - CUDA CUT LIBRARY.
"

When building the examples i got errors :

5>Compiling...
2>itk-cpu-abs.cxx
3>itk-cpu-add.cxx
4>itk-cpu-addc.cxx
5>ImageCompare.cxx
2>c:\trst\cuda-insight-toolkit\examples\src\timer.h(101) : error C2079: 't'
uses undefined struct 'getTime::timespec'
2>c:\trst\cuda-insight-toolkit\examples\src\timer.h(102) : error C2065:
'CLOCK_REALTIME' : undeclared identifier
2>c:\trst\cuda-insight-toolkit\examples\src\timer.h(102) : error C3861:
'clock_gettime': identifier not found
2>c:\trst\cuda-insight-toolkit\examples\src\timer.h(103) : error C2228: left
of '.tv_sec' must have class/struct/union
2>        type is 'int'
2>c:\trst\cuda-insight-toolkit\examples\src\timer.h(103) : error C2228: left
of '.tv_nsec' must have class/struct/union
2>        type is 'int'


These i got rid of by changing the timer.h file:

FROM:
double getTime() {

  double time;
  struct timespec t;
  clock_gettime(CLOCK_REALTIME, &t);
  time = t.tv_sec + t.tv_nsec/1E9;
  return time;
}

TO:
double getTime() {

  double time;
  //struct timespec t;
  //clock_gettime(CLOCK_REALTIME, &t);
  time = 2.0;
  return time;
}


But after this it gives me errors:
5>LINK : fatal error LNK1181: cannot open input file 'rt.lib'

I can not find this lib anywhere.

Anybody got any ideas?


Thanks...






--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/missing-rt-lib-with-CITK-tp7078092p7078092.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list